#2F42B8#2F42B8

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

Color values

HEX#2F42B8
RGBrgb(47, 66, 184)
HSLhsl(232, 59%, 45%)
HSVhsv(232, 74%, 72%)
CMYKcmyk(74.5%, 64.1%, 0%, 27.8%)
CIE-LABlab(33.90, 34.13, -64.31)
CIE-LCHlch(33.90, 72.81, 297.95°)
OKLaboklab(44.37% -0.0007 -0.1859)
OKLCHoklch(44.37% 0.186 269.8)
XYZxyz(11.7693, 7.9602, 46.2543)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42B8 #B8A52F
analogous
#2F86B8 #2F42B8 #612FB8
triadic
#2F42B8 #B82F42 #42B82F
tetradic
#2F42B8 #B82F86 #B8A52F #2FB861
square
#2F42B8 #B82F86 #B8A52F #2FB861
split-complementary
#2F42B8 #B8612F #86B82F
monochromatic
#161F57 #233187 #2F42B8 #5263D3 #828FDF

Accessibility & contrast

On white

8.10
#2F42B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2F42B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F42B8
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F42B8#FFFFFF#000000##FFFFFF
##2F42B81.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0049B6
Tritanopia (blue-blind)
#006177
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f42b8;
/* rgb */ color: rgb(47, 66, 184);
/* oklch */ color: oklch(44.4% 0.186 269.8);
Tailwind
colors: {
  custom: {
    50: '#7c76ce',
    500: '#2f42b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f42b8;
$custom-light: #7c76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42b8",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 184
  },
  "hsl": {
    "h": 231.679,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44368,
    "c": 0.18592,
    "h": 269.8
  },
  "luminance": 0.07961
}

Semantic roles & 50–950 ramp

primary
#2F42B8
secondary
#C8BD7B
accent
#CD45E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2F42B8

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

Preview Lab → · Contrast checker → · Palette generator →

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