#2F42B9#2F42B9

#2F42B9 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.5% C 0.187 H 269.8°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#2F42B9
RGBrgb(47, 66, 185)
HSLhsl(232, 59%, 45%)
HSVhsv(232, 75%, 73%)
CMYKcmyk(74.6%, 64.3%, 0%, 27.5%)
CIE-LABlab(33.99, 34.49, -64.76)
CIE-LCHlch(33.99, 73.37, 298.04°)
OKLaboklab(44.46% -0.0007 -0.1872)
OKLCHoklch(44.46% 0.187 269.8)
XYZxyz(11.8745, 8.0023, 46.8083)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42B9 #B9A62F
analogous
#2F87B9 #2F42B9 #612FB9
triadic
#2F42B9 #B92F42 #42B92F
tetradic
#2F42B9 #B92F87 #B9A62F #2FB961
square
#2F42B9 #B92F87 #B9A62F #2FB961
split-complementary
#2F42B9 #B9612F #87B92F
monochromatic
#161F57 #233188 #2F42B9 #5264D3 #8390DF

Accessibility & contrast

On white

8.07
#2F42B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2F42B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F42B9
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F42B9#FFFFFF#000000##FFFFFF
##2F42B91.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#004AB7
Tritanopia (blue-blind)
#006177
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f42b9;
/* rgb */ color: rgb(47, 66, 185);
/* oklch */ color: oklch(44.5% 0.187 269.8);
Tailwind
colors: {
  custom: {
    50: '#7c76cf',
    500: '#2f42b9',
    950: '#000000',
  },
}
SCSS
$custom: #2f42b9;
$custom-light: #7c76cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42b9",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 185
  },
  "hsl": {
    "h": 231.739,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4446,
    "c": 0.18723,
    "h": 269.8
  },
  "luminance": 0.08004
}

Semantic roles & 50–950 ramp

primary
#2F42B9
secondary
#C9BE7B
accent
#CD45E3
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2F42B9

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

Preview Lab → · Contrast checker → · Palette generator →

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