#2731FF
Closest named color: Vivid Blue (#152EFF). oklch(49% 0.287 267.8), rgb(39, 49, 255).
Aa
White text reads best on this color (7.07:1).
About this color
#2731FF is a medium-dark, vivid blue. In OKLCH its lightness is 49%, its chroma 0.287 and its hue 268°. Its hue sits on the cool side of the wheel. The nearest named color is Vivid Blue (#152EFF), ΔE 0.015 away. White text reads best on it, at 7.07:1.
| Hue family | Blues |
| Lightness | medium-dark (49%) |
| Chroma | vivid (0.287) |
| Temperature | cool |
| Nearest name | Vivid Blue (#152EFF) |
| Black text | 2.96:1 |
| White text | 7.07:1 |
Values
| HEX | #2731FF |
| RGB | rgb(39, 49, 255) |
| HSL | hsl(237, 100%, 58%) |
| OKLCH | oklch(49% 0.287 267.8) |
Contrast
WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #2731FF | 7.07:1 | AAA | Lc -87.8 | Fine for body text |
| Black text on #2731FF | 2.96:1 | Fails | Lc 21.3 | Dividers and decoration only |
| #2731FF text on white | 7.07:1 | AAA | Lc 82.7 | Fine for body text |
| #2731FF text on black | 2.96:1 | Fails | Lc -19.2 | Dividers and decoration only |
Tints and shades
A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 700.
-
Step 50
50
#F1F5FF
oklch(97% 0.014 268.5)
-
Step 100
100
#E1EAFF
oklch(93.7% 0.03 267.2)
-
Step 200
200
#C9D9FF
oklch(88.6% 0.055 267.2)
-
Step 300
300
#A6BFFF
oklch(80.9% 0.095 267.8)
-
Step 400
400
#779BFF
oklch(70.7% 0.152 267.5)
-
Step 500
500
#567DFF
oklch(63% 0.198 267.8)
-
Step 600
600
#395BFF
oklch(55.6% 0.245 267.9)
-
Step 700
700 (this color)
#2731FF
oklch(49% 0.287 267.8)
-
Step 800
800
#1F2DCE
oklch(42.7% 0.238 267.8)
-
Step 900
900
#1B2EA1
oklch(37.7% 0.184 267.8)
-
Step 950
950
#0F1D5E
oklch(27% 0.117 267.8)
#2731FF with color blindness
Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #0063FF | 0.085 |
| Deuteranopia (no green cones) | #004DFC | 0.041 |
| Tritanopia (no blue cones) | #00749A | 0.217 |
| Achromatopsia (no color) | #585858 | 0.289 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #2731FF
#2731FF
oklch(49% 0.287 267.8)
- #785C00
#785C00
oklch(49% 0.1 87.9)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #2731FF, closest first.
No curated palette has a color within ΔE 0.04 of #2731FF.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Vivid Blue #152EFF ΔE 0.015
- Light Royal Blue #3A2EFE ΔE 0.020
- Vibrant Blue #0339F8 ΔE 0.021
- Rich Blue #021BF9 ΔE 0.041
- Strong Blue #0C06F7 ΔE 0.050
- Blue #0000FF ΔE 0.050
- Primary Blue #0804F9 ΔE 0.051
- Electric Blue #0652FF ΔE 0.051
Use #2731FF in your product
Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.