#2F408F#2F408F

#2F408F is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.5% C 0.132 H 270.3°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#2F408F
RGBrgb(47, 64, 143)
HSLhsl(229, 51%, 37%)
HSVhsv(229, 67%, 56%)
CMYKcmyk(67.1%, 55.2%, 0%, 43.9%)
CIE-LABlab(30.04, 20.31, -45.91)
CIE-LCHlch(30.04, 50.20, 293.87°)
OKLaboklab(40.46% 0.0008 -0.1319)
OKLCHoklch(40.46% 0.132 270.3)
XYZxyz(7.9619, 6.2536, 26.7687)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F408F #8F7E2F
analogous
#2F708F #2F408F #4E2F8F
triadic
#2F408F #8F2F40 #408F2F
tetradic
#2F408F #8F2F70 #8F7E2F #2F8F4E
square
#2F408F #8F2F70 #8F7E2F #2F8F4E
split-complementary
#2F408F #8F4E2F #708F2F
monochromatic
#111733 #202B61 #2F408F #3E55BD #6A7CCE

Accessibility & contrast

On white

9.33
#2F408F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2F408F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F408F
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F408F#FFFFFF#000000##FFFFFF
##2F408F1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074B92
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f408f;
/* rgb */ color: rgb(47, 64, 143);
/* oklch */ color: oklch(40.5% 0.132 270.3);
Tailwind
colors: {
  custom: {
    50: '#7374b0',
    500: '#2f408f',
    950: '#000000',
  },
}
SCSS
$custom: #2f408f;
$custom-light: #7374b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f408f",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 229.375,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40461,
    "c": 0.13189,
    "h": 270.3
  },
  "luminance": 0.06254
}

Semantic roles & 50–950 ramp

primary
#2F408F
secondary
#B5A765
accent
#C14EDA
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F408F

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

Preview Lab → · Contrast checker → · Palette generator →

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