#2F387F#2F387F

#2F387F is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.5% C 0.119 H 273.8°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#2F387F
RGBrgb(47, 56, 127)
HSLhsl(233, 46%, 34%)
HSVhsv(233, 63%, 50%)
CMYKcmyk(63%, 55.9%, 0%, 50.2%)
CIE-LABlab(26.63, 19.82, -41.48)
CIE-LCHlch(26.63, 45.98, 295.54°)
OKLaboklab(37.52% 0.0078 -0.119)
OKLCHoklch(37.52% 0.119 273.8)
XYZxyz(6.4160, 4.9645, 20.6947)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F387F #7F762F
analogous
#2F607F #2F387F #4E2F7F
triadic
#2F387F #7F2F38 #387F2F
tetradic
#2F387F #7F2F60 #7F762F #2F7F4E
square
#2F387F #7F2F60 #7F762F #2F7F4E
split-complementary
#2F387F #7F4E2F #607F2F
monochromatic
#0E1126 #1E2452 #2F387F #404CAC #636EC5

Accessibility & contrast

On white

10.54
#2F387F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F387F
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F387F#FFFFFF#000000##FFFFFF
##2F387F1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084381
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#004956
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f387f;
/* rgb */ color: rgb(47, 56, 127);
/* oklch */ color: oklch(37.5% 0.119 273.8);
Tailwind
colors: {
  custom: {
    50: '#706ea5',
    500: '#2f387f',
    950: '#000000',
  },
}
SCSS
$custom: #2f387f;
$custom-light: #706ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f387f",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 127
  },
  "hsl": {
    "h": 233.25,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37521,
    "c": 0.11925,
    "h": 273.8
  },
  "luminance": 0.04965
}

Semantic roles & 50–950 ramp

primary
#2F387F
secondary
#ACA35E
accent
#C752D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2F387F

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

Preview Lab → · Contrast checker → · Palette generator →

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