#2F4DAB#2F4DAB

#2F4DAB is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.4% C 0.155 H 266.7°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#2F4DAB
RGBrgb(47, 77, 171)
HSLhsl(225, 57%, 43%)
HSVhsv(225, 73%, 67%)
CMYKcmyk(72.5%, 55%, 0%, 32.9%)
CIE-LABlab(35.70, 22.11, -53.68)
CIE-LCHlch(35.70, 58.05, 292.39°)
OKLaboklab(45.38% -0.0088 -0.1546)
OKLCHoklch(45.38% 0.155 266.7)
XYZxyz(11.1743, 8.8512, 39.6397)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DAB #AB8D2F
analogous
#2F8BAB #2F4DAB #4F2FAB
triadic
#2F4DAB #AB2F4D #4DAB2F
tetradic
#2F4DAB #AB2F8B #AB8D2F #2FAB4F
square
#2F4DAB #AB2F8B #AB8D2F #2FAB4F
split-complementary
#2F4DAB #AB4F2F #8BAB2F
monochromatic
#15224B #22377B #2F4DAB #4A6ACD #7A91DA

Accessibility & contrast

On white

7.58
#2F4DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#2F4DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4DAB
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DAB#FFFFFF#000000##FFFFFF
##2F4DAB1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAE
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f4dab;
/* rgb */ color: rgb(47, 77, 171);
/* oklch */ color: oklch(45.4% 0.155 266.7);
Tailwind
colors: {
  custom: {
    50: '#787ec5',
    500: '#2f4dab',
    950: '#000000',
  },
}
SCSS
$custom: #2f4dab;
$custom-light: #787ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4dab",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 171
  },
  "hsl": {
    "h": 225.484,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45378,
    "c": 0.15481,
    "h": 266.7
  },
  "luminance": 0.08852
}

Semantic roles & 50–950 ramp

primary
#2F4DAB
secondary
#C3AF73
accent
#BB48E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F4DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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