#2F408E#2F408E

#2F408E is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.130 H 270.3°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#2F408E
RGBrgb(47, 64, 142)
HSLhsl(229, 50%, 37%)
HSVhsv(229, 67%, 56%)
CMYKcmyk(66.9%, 54.9%, 0%, 44.3%)
CIE-LABlab(29.97, 19.94, -45.41)
CIE-LCHlch(29.97, 49.60, 293.70°)
OKLaboklab(40.38% 0.0007 -0.1304)
OKLCHoklch(40.38% 0.13 270.3)
XYZxyz(7.8865, 6.2234, 26.3716)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F408E #8E7D2F
analogous
#2F708E #2F408E #4D2F8E
triadic
#2F408E #8E2F40 #408E2F
tetradic
#2F408E #8E2F70 #8E7D2F #2F8E4D
square
#2F408E #8E2F70 #8E7D2F #2F8E4D
split-complementary
#2F408E #8E4D2F #708E2F
monochromatic
#111732 #202B60 #2F408E #3E55BC #6A7CCE

Accessibility & contrast

On white

9.35
#2F408E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2F408E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F408E
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F408E#FFFFFF#000000##FFFFFF
##2F408E1.009.352.249.35
#FFFFFF9.351.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094B91
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f408e;
/* rgb */ color: rgb(47, 64, 142);
/* oklch */ color: oklch(40.4% 0.130 270.3);
Tailwind
colors: {
  custom: {
    50: '#7374b0',
    500: '#2f408e',
    950: '#000000',
  },
}
SCSS
$custom: #2f408e;
$custom-light: #7374b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f408e",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 229.263,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40382,
    "c": 0.13044,
    "h": 270.3
  },
  "luminance": 0.06224
}

Semantic roles & 50–950 ramp

primary
#2F408E
secondary
#B5A664
accent
#C14EDA
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2F408E

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

Preview Lab → · Contrast checker → · Palette generator →

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