#2F3E72#2F3E72

#2F3E72 is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.9% C 0.091 H 269.6°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#2F3E72
RGBrgb(47, 62, 114)
HSLhsl(227, 42%, 32%)
HSVhsv(227, 59%, 45%)
CMYKcmyk(58.8%, 45.6%, 0%, 55.3%)
CIE-LABlab(27.47, 10.93, -31.93)
CIE-LCHlch(27.47, 33.75, 288.90°)
OKLaboklab(37.87% -0.0007 -0.0908)
OKLCHoklch(37.87% 0.091 269.6)
XYZxyz(5.9312, 5.2640, 16.6198)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3E72 #72632F
analogous
#2F6072 #2F3E72 #422F72
triadic
#2F3E72 #722F3E #3E722F
tetradic
#2F3E72 #722F60 #72632F #2F7242
square
#2F3E72 #722F60 #72632F #2F7242
split-complementary
#2F3E72 #72422F #60722F
monochromatic
#0B0F1B #1D2647 #2F3E72 #41569D #5F74BD

Accessibility & contrast

On white

10.23
#2F3E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2F3E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3E72
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3E72#FFFFFF#000000##FFFFFF
##2F3E721.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274474
Deuteranopia (green-blind)
#1F3E71
Tritanopia (blue-blind)
#064952
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f3e72;
/* rgb */ color: rgb(47, 62, 114);
/* oklch */ color: oklch(37.9% 0.091 269.6);
Tailwind
colors: {
  custom: {
    50: '#6d739b',
    500: '#2f3e72',
    950: '#000000',
  },
}
SCSS
$custom: #2f3e72;
$custom-light: #6d739b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3e72",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 114
  },
  "hsl": {
    "h": 226.567,
    "s": 41.615,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37872,
    "c": 0.09083,
    "h": 269.6
  },
  "luminance": 0.05264
}

Semantic roles & 50–950 ramp

primary
#2F3E72
secondary
#A3935A
accent
#B656D1
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2F3E72

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

Preview Lab → · Contrast checker → · Palette generator →

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