#2F408D#2F408D

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

Color values

HEX#2F408D
RGBrgb(47, 64, 141)
HSLhsl(229, 50%, 37%)
HSVhsv(229, 67%, 55%)
CMYKcmyk(66.7%, 54.6%, 0%, 44.7%)
CIE-LABlab(29.90, 19.57, -44.91)
CIE-LCHlch(29.90, 48.99, 293.54°)
OKLaboklab(40.3% 0.0006 -0.129)
OKLCHoklch(40.3% 0.129 270.3)
XYZxyz(7.8118, 6.1935, 25.9779)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F408D #8D7C2F
analogous
#2F6F8D #2F408D #4D2F8D
triadic
#2F408D #8D2F40 #408D2F
tetradic
#2F408D #8D2F6F #8D7C2F #2F8D4D
square
#2F408D #8D2F6F #8D7C2F #2F8D4D
split-complementary
#2F408D #8D4D2F #6F8D2F
monochromatic
#101631 #202B5F #2F408D #3E55BB #697BCD

Accessibility & contrast

On white

9.38
#2F408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F408D
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F408D#FFFFFF#000000##FFFFFF
##2F408D1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4B90
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f408d;
/* rgb */ color: rgb(47, 64, 141);
/* oklch */ color: oklch(40.3% 0.129 270.3);
Tailwind
colors: {
  custom: {
    50: '#7274af',
    500: '#2f408d',
    950: '#000000',
  },
}
SCSS
$custom: #2f408d;
$custom-light: #7274af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f408d",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 229.149,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40303,
    "c": 0.12898,
    "h": 270.3
  },
  "luminance": 0.06194
}

Semantic roles & 50–950 ramp

primary
#2F408D
secondary
#B4A664
accent
#C04EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2F408D

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

Preview Lab → · Contrast checker → · Palette generator →

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