#2F4F9F#2F4F9F

#2F4F9F is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.9% C 0.135 H 265.0°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#2F4F9F
RGBrgb(47, 79, 159)
HSLhsl(223, 54%, 40%)
HSVhsv(223, 70%, 62%)
CMYKcmyk(70.4%, 50.3%, 0%, 37.6%)
CIE-LABlab(35.40, 16.25, -46.98)
CIE-LCHlch(35.40, 49.72, 289.08°)
OKLaboklab(44.88% -0.0118 -0.1348)
OKLCHoklch(44.88% 0.135 265)
XYZxyz(10.2241, 8.6985, 33.9343)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F9F #9F7F2F
analogous
#2F879F #2F4F9F #472F9F
triadic
#2F4F9F #9F2F4F #4F9F2F
tetradic
#2F4F9F #9F2F87 #9F7F2F #2F9F47
square
#2F4F9F #9F2F87 #9F7F2F #2F9F47
split-complementary
#2F4F9F #9F472F #879F2F
monochromatic
#132041 #213870 #2F4F9F #4469C8 #738FD6

Accessibility & contrast

On white

7.66
#2F4F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2F4F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F9F
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F9F#FFFFFF#000000##FFFFFF
##2F4F9F1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2159A2
Deuteranopia (green-blind)
#004E9D
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f4f9f;
/* rgb */ color: rgb(47, 79, 159);
/* oklch */ color: oklch(44.9% 0.135 265.0);
Tailwind
colors: {
  custom: {
    50: '#757fbc',
    500: '#2f4f9f',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f9f;
$custom-light: #757fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f9f",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 159
  },
  "hsl": {
    "h": 222.857,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4488,
    "c": 0.13534,
    "h": 265
  },
  "luminance": 0.087
}

Semantic roles & 50–950 ramp

primary
#2F4F9F
secondary
#BDA66D
accent
#B44ADE
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2F4F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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