#2F387E#2F387E

#2F387E is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.4% C 0.118 H 273.8°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#2F387E
RGBrgb(47, 56, 126)
HSLhsl(233, 46%, 34%)
HSVhsv(233, 63%, 49%)
CMYKcmyk(62.7%, 55.6%, 0%, 50.6%)
CIE-LABlab(26.56, 19.45, -40.98)
CIE-LCHlch(26.56, 45.36, 295.39°)
OKLaboklab(37.44% 0.0077 -0.1175)
OKLCHoklch(37.44% 0.118 273.8)
XYZxyz(6.3511, 4.9385, 20.3532)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F387E #7E752F
analogous
#2F607E #2F387E #4E2F7E
triadic
#2F387E #7E2F38 #387E2F
tetradic
#2F387E #7E2F60 #7E752F #2F7E4E
square
#2F387E #7E2F60 #7E752F #2F7E4E
split-complementary
#2F387E #7E4E2F #607E2F
monochromatic
#0E1025 #1E2451 #2F387E #404CAB #636EC5

Accessibility & contrast

On white

10.56
#2F387E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2F387E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F387E
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F387E#FFFFFF#000000##FFFFFF
##2F387E1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4280
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#004855
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f387e;
/* rgb */ color: rgb(47, 56, 126);
/* oklch */ color: oklch(37.4% 0.118 273.8);
Tailwind
colors: {
  custom: {
    50: '#706ea4',
    500: '#2f387e',
    950: '#000000',
  },
}
SCSS
$custom: #2f387e;
$custom-light: #706ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f387e",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 126
  },
  "hsl": {
    "h": 233.165,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37441,
    "c": 0.11775,
    "h": 273.8
  },
  "luminance": 0.04939
}

Semantic roles & 50–950 ramp

primary
#2F387E
secondary
#ACA35D
accent
#C652D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2F387E

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

Preview Lab → · Contrast checker → · Palette generator →

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