#2F42B1#2F42B1

#2F42B1 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.7% C 0.177 H 269.9°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#2F42B1
RGBrgb(47, 66, 177)
HSLhsl(231, 58%, 44%)
HSVhsv(231, 73%, 69%)
CMYKcmyk(73.4%, 62.7%, 0%, 30.6%)
CIE-LABlab(33.29, 31.58, -61.16)
CIE-LCHlch(33.29, 68.83, 297.31°)
OKLaboklab(43.74% -0.0004 -0.1767)
OKLCHoklch(43.74% 0.177 269.9)
XYZxyz(11.0536, 7.6739, 42.4851)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42B1 #B19E2F
analogous
#2F83B1 #2F42B1 #5D2FB1
triadic
#2F42B1 #B12F42 #42B12F
tetradic
#2F42B1 #B12F83 #B19E2F #2FB15D
square
#2F42B1 #B12F83 #B19E2F #2FB15D
split-complementary
#2F42B1 #B15D2F #83B12F
monochromatic
#151E50 #223081 #2F42B1 #4D60D0 #7E8CDD

Accessibility & contrast

On white

8.28
#2F42B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2F42B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F42B1
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F42B1#FFFFFF#000000##FFFFFF
##2F42B11.008.282.538.28
#FFFFFF8.281.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0048AF
Tritanopia (blue-blind)
#005F73
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f42b1;
/* rgb */ color: rgb(47, 66, 177);
/* oklch */ color: oklch(43.7% 0.177 269.9);
Tailwind
colors: {
  custom: {
    50: '#7a76c9',
    500: '#2f42b1',
    950: '#000000',
  },
}
SCSS
$custom: #2f42b1;
$custom-light: #7a76c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42b1",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 177
  },
  "hsl": {
    "h": 231.231,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43736,
    "c": 0.17668,
    "h": 269.9
  },
  "luminance": 0.07675
}

Semantic roles & 50–950 ramp

primary
#2F42B1
secondary
#C5BA76
accent
#CB47E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F42B1

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2F42B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva