#2F408B#2F408B

#2F408B is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.1% C 0.126 H 270.2°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#2F408B
RGBrgb(47, 64, 139)
HSLhsl(229, 49%, 36%)
HSVhsv(229, 66%, 55%)
CMYKcmyk(66.2%, 54%, 0%, 45.5%)
CIE-LABlab(29.75, 18.82, -43.92)
CIE-LCHlch(29.75, 47.78, 293.19°)
OKLaboklab(40.15% 0.0005 -0.126)
OKLCHoklch(40.15% 0.126 270.2)
XYZxyz(7.6643, 6.1345, 25.2013)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F408B #8B7A2F
analogous
#2F6E8B #2F408B #4C2F8B
triadic
#2F408B #8B2F40 #408B2F
tetradic
#2F408B #8B2F6E #8B7A2F #2F8B4C
square
#2F408B #8B2F6E #8B7A2F #2F8B4C
split-complementary
#2F408B #8B4C2F #6E8B2F
monochromatic
#101630 #202B5D #2F408B #3E55B9 #687BCC

Accessibility & contrast

On white

9.43
#2F408B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2F408B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F408B
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F408B#FFFFFF#000000##FFFFFF
##2F408B1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114A8E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f408b;
/* rgb */ color: rgb(47, 64, 139);
/* oklch */ color: oklch(40.1% 0.126 270.2);
Tailwind
colors: {
  custom: {
    50: '#7274ad',
    500: '#2f408b',
    950: '#000000',
  },
}
SCSS
$custom: #2f408b;
$custom-light: #7274ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f408b",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 139
  },
  "hsl": {
    "h": 228.913,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40146,
    "c": 0.12604,
    "h": 270.2
  },
  "luminance": 0.06135
}

Semantic roles & 50–950 ramp

primary
#2F408B
secondary
#B3A463
accent
#BF4FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2F408B

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

Preview Lab → · Contrast checker → · Palette generator →

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