#2F4D9A#2F4D9A

#2F4D9A is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.1% C 0.131 H 265.4°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#2F4D9A
RGBrgb(47, 77, 154)
HSLhsl(223, 53%, 39%)
HSVhsv(223, 69%, 60%)
CMYKcmyk(69.5%, 50%, 0%, 39.6%)
CIE-LABlab(34.49, 15.70, -45.44)
CIE-LCHlch(34.49, 48.07, 289.06°)
OKLaboklab(44.08% -0.0106 -0.1303)
OKLCHoklch(44.08% 0.131 265.4)
XYZxyz(9.6569, 8.2442, 31.6480)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D9A #9A7C2F
analogous
#2F839A #2F4D9A #472F9A
triadic
#2F4D9A #9A2F4D #4D9A2F
tetradic
#2F4D9A #9A2F83 #9A7C2F #2F9A47
square
#2F4D9A #9A2F83 #9A7C2F #2F9A47
split-complementary
#2F4D9A #9A472F #839A2F
monochromatic
#121E3C #21366B #2F4D9A #4166C5 #708CD3

Accessibility & contrast

On white

7.93
#2F4D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2F4D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4D9A
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D9A#FFFFFF#000000##FFFFFF
##2F4D9A1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22569D
Deuteranopia (green-blind)
#024C98
Tritanopia (blue-blind)
#005F6C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f4d9a;
/* rgb */ color: rgb(47, 77, 154);
/* oklch */ color: oklch(44.1% 0.131 265.4);
Tailwind
colors: {
  custom: {
    50: '#757eb8',
    500: '#2f4d9a',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d9a;
$custom-light: #757eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d9a",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 154
  },
  "hsl": {
    "h": 223.178,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44076,
    "c": 0.13075,
    "h": 265.4
  },
  "luminance": 0.08245
}

Semantic roles & 50–950 ramp

primary
#2F4D9A
secondary
#BBA46A
accent
#B44BDD
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2F4D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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