#2F4D96#2F4D96

#2F4D96 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.8% C 0.125 H 264.9°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#2F4D96
RGBrgb(47, 77, 150)
HSLhsl(223, 52%, 39%)
HSVhsv(223, 69%, 59%)
CMYKcmyk(68.7%, 48.7%, 0%, 41.2%)
CIE-LABlab(34.22, 14.19, -43.45)
CIE-LCHlch(34.22, 45.71, 288.08°)
OKLaboklab(43.79% -0.0111 -0.1245)
OKLCHoklch(43.79% 0.125 264.9)
XYZxyz(9.3293, 8.1132, 29.9226)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D96 #96782F
analogous
#2F8096 #2F4D96 #442F96
triadic
#2F4D96 #962F4D #4D962F
tetradic
#2F4D96 #962F80 #96782F #2F9644
square
#2F4D96 #962F80 #96782F #2F9644
split-complementary
#2F4D96 #96442F #80962F
monochromatic
#121D39 #203567 #2F4D96 #3F66C3 #6E8BD2

Accessibility & contrast

On white

8.01
#2F4D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2F4D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4D96
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D96#FFFFFF#000000##FFFFFF
##2F4D961.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275599
Deuteranopia (green-blind)
#0F4C95
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f4d96;
/* rgb */ color: rgb(47, 77, 150);
/* oklch */ color: oklch(43.8% 0.125 264.9);
Tailwind
colors: {
  custom: {
    50: '#747eb5',
    500: '#2f4d96',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d96;
$custom-light: #747eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d96",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 150
  },
  "hsl": {
    "h": 222.524,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.43785,
    "c": 0.12496,
    "h": 264.9
  },
  "luminance": 0.08114
}

Semantic roles & 50–950 ramp

primary
#2F4D96
secondary
#B9A168
accent
#B24CDC
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2F4D96

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

Preview Lab → · Contrast checker → · Palette generator →

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