#2F4487#2F4487

#2F4487 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.7% C 0.115 H 267.9°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#2F4487
RGBrgb(47, 68, 135)
HSLhsl(226, 48%, 36%)
HSVhsv(226, 65%, 53%)
CMYKcmyk(65.2%, 49.6%, 0%, 47.1%)
CIE-LABlab(30.61, 14.61, -40.06)
CIE-LCHlch(30.61, 42.64, 290.03°)
OKLaboklab(40.71% -0.0041 -0.1146)
OKLCHoklch(40.71% 0.115 267.9)
XYZxyz(7.6111, 6.4872, 23.7680)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4487 #87722F
analogous
#2F7087 #2F4487 #462F87
triadic
#2F4487 #872F44 #44872F
tetradic
#2F4487 #872F70 #87722F #2F8746
square
#2F4487 #872F70 #87722F #2F8746
split-complementary
#2F4487 #87462F #70872F
monochromatic
#0F162C #1F2D5A #2F4487 #3F5BB4 #667ECA

Accessibility & contrast

On white

9.14
#2F4487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2F4487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4487
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4487#FFFFFF#000000##FFFFFF
##2F44871.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214C89
Deuteranopia (green-blind)
#0F4486
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f4487;
/* rgb */ color: rgb(47, 68, 135);
/* oklch */ color: oklch(40.7% 0.115 267.9);
Tailwind
colors: {
  custom: {
    50: '#7177aa',
    500: '#2f4487',
    950: '#000000',
  },
}
SCSS
$custom: #2f4487;
$custom-light: #7177aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4487",
  "rgb": {
    "r": 47,
    "g": 68,
    "b": 135
  },
  "hsl": {
    "h": 225.682,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40709,
    "c": 0.11471,
    "h": 267.9
  },
  "luminance": 0.06488
}

Semantic roles & 50–950 ramp

primary
#2F4487
secondary
#B19E61
accent
#B750D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F4487

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

Preview Lab → · Contrast checker → · Palette generator →

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