#2F4589#2F4589

#2F4589 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.1% C 0.116 H 267.6°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#2F4589
RGBrgb(47, 69, 137)
HSLhsl(225, 49%, 36%)
HSVhsv(225, 66%, 54%)
CMYKcmyk(65.7%, 49.6%, 0%, 46.3%)
CIE-LABlab(31.03, 14.68, -40.61)
CIE-LCHlch(31.03, 43.19, 289.87°)
OKLaboklab(41.08% -0.0049 -0.1162)
OKLCHoklch(41.08% 0.116 267.6)
XYZxyz(7.8142, 6.6660, 24.5369)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4589 #89732F
analogous
#2F7289 #2F4589 #462F89
triadic
#2F4589 #892F45 #45892F
tetradic
#2F4589 #892F72 #89732F #2F8946
square
#2F4589 #892F72 #89732F #2F8946
split-complementary
#2F4589 #89462F #72892F
monochromatic
#10172E #1F2E5B #2F4589 #3F5CB7 #6780CB

Accessibility & contrast

On white

9.00
#2F4589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2F4589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4589
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4589#FFFFFF#000000##FFFFFF
##2F45891.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224D8B
Deuteranopia (green-blind)
#0F4588
Tritanopia (blue-blind)
#005560
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f4589;
/* rgb */ color: rgb(47, 69, 137);
/* oklch */ color: oklch(41.1% 0.116 267.6);
Tailwind
colors: {
  custom: {
    50: '#7178ac',
    500: '#2f4589',
    950: '#000000',
  },
}
SCSS
$custom: #2f4589;
$custom-light: #7178ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4589",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 137
  },
  "hsl": {
    "h": 225.333,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41076,
    "c": 0.11635,
    "h": 267.6
  },
  "luminance": 0.06667
}

Semantic roles & 50–950 ramp

primary
#2F4589
secondary
#B29E62
accent
#B74FD8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F4589

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

Preview Lab → · Contrast checker → · Palette generator →

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