#2F4CA8#2F4CA8

#2F4CA8 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.9% C 0.152 H 266.9°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#2F4CA8
RGBrgb(47, 76, 168)
HSLhsl(226, 56%, 42%)
HSVhsv(226, 72%, 66%)
CMYKcmyk(72%, 54.8%, 0%, 34.1%)
CIE-LABlab(35.20, 21.65, -52.69)
CIE-LCHlch(35.20, 56.96, 292.33°)
OKLaboklab(44.94% -0.0082 -0.1517)
OKLCHoklch(44.94% 0.152 266.9)
XYZxyz(10.8222, 8.5993, 38.1277)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4CA8 #A88B2F
analogous
#2F89A8 #2F4CA8 #4F2FA8
triadic
#2F4CA8 #A82F4C #4CA82F
tetradic
#2F4CA8 #A82F89 #A88B2F #2FA84F
square
#2F4CA8 #A82F89 #A88B2F #2FA84F
split-complementary
#2F4CA8 #A84F2F #89A82F
monochromatic
#142148 #223678 #2F4CA8 #4868CC #788FD9

Accessibility & contrast

On white

7.72
#2F4CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2F4CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4CA8
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4CA8#FFFFFF#000000##FFFFFF
##2F4CA81.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0159AB
Deuteranopia (green-blind)
#004DA6
Tritanopia (blue-blind)
#006272
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f4ca8;
/* rgb */ color: rgb(47, 76, 168);
/* oklch */ color: oklch(44.9% 0.152 266.9);
Tailwind
colors: {
  custom: {
    50: '#787dc3',
    500: '#2f4ca8',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ca8;
$custom-light: #787dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ca8",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 168
  },
  "hsl": {
    "h": 225.62,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44935,
    "c": 0.1519,
    "h": 266.9
  },
  "luminance": 0.086
}

Semantic roles & 50–950 ramp

primary
#2F4CA8
secondary
#C1AE71
accent
#BB48E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F4CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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