#2F4E9E#2F4E9E

#2F4E9E is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.6% C 0.135 H 265.3°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#2F4E9E
RGBrgb(47, 78, 158)
HSLhsl(223, 54%, 40%)
HSVhsv(223, 70%, 62%)
CMYKcmyk(70.3%, 50.6%, 0%, 38%)
CIE-LABlab(35.04, 16.54, -46.95)
CIE-LCHlch(35.04, 49.78, 289.41°)
OKLaboklab(44.59% -0.011 -0.1347)
OKLCHoklch(44.59% 0.135 265.3)
XYZxyz(10.0661, 8.5207, 33.4553)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E9E #9E7F2F
analogous
#2F859E #2F4E9E #472F9E
triadic
#2F4E9E #9E2F4E #4E9E2F
tetradic
#2F4E9E #9E2F85 #9E7F2F #2F9E47
square
#2F4E9E #9E2F85 #9E7F2F #2F9E47
split-complementary
#2F4E9E #9E472F #859E2F
monochromatic
#131F40 #21376F #2F4E9E #4368C7 #728ED5

Accessibility & contrast

On white

7.77
#2F4E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#2F4E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E9E
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E9E#FFFFFF#000000##FFFFFF
##2F4E9E1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2058A1
Deuteranopia (green-blind)
#004E9C
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f4e9e;
/* rgb */ color: rgb(47, 78, 158);
/* oklch */ color: oklch(44.6% 0.135 265.3);
Tailwind
colors: {
  custom: {
    50: '#757fbb',
    500: '#2f4e9e',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e9e;
$custom-light: #757fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e9e",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 158
  },
  "hsl": {
    "h": 223.243,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44589,
    "c": 0.1352,
    "h": 265.3
  },
  "luminance": 0.08522
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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