#2F387C#2F387C

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

Color values

HEX#2F387C
RGBrgb(47, 56, 124)
HSLhsl(233, 45%, 34%)
HSVhsv(233, 62%, 49%)
CMYKcmyk(62.1%, 54.8%, 0%, 51.4%)
CIE-LABlab(26.41, 18.72, -39.96)
CIE-LCHlch(26.41, 44.12, 295.10°)
OKLaboklab(37.28% 0.0076 -0.1145)
OKLCHoklch(37.28% 0.115 273.8)
XYZxyz(6.2234, 4.8874, 19.6803)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F387C #7C732F
analogous
#2F5E7C #2F387C #4C2F7C
triadic
#2F387C #7C2F38 #387C2F
tetradic
#2F387C #7C2F5E #7C732F #2F7C4C
square
#2F387C #7C2F5E #7C732F #2F7C4C
split-complementary
#2F387C #7C4C2F #5E7C2F
monochromatic
#0D1023 #1E2450 #2F387C #404CA8 #626DC3

Accessibility & contrast

On white

10.62
#2F387C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2F387C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F387C
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F387C#FFFFFF#000000##FFFFFF
##2F387C1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F427E
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f387c;
/* rgb */ color: rgb(47, 56, 124);
/* oklch */ color: oklch(37.3% 0.115 273.8);
Tailwind
colors: {
  custom: {
    50: '#706ea2',
    500: '#2f387c',
    950: '#000000',
  },
}
SCSS
$custom: #2f387c;
$custom-light: #706ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f387c",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 124
  },
  "hsl": {
    "h": 232.987,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37284,
    "c": 0.11474,
    "h": 273.8
  },
  "luminance": 0.04888
}

Semantic roles & 50–950 ramp

primary
#2F387C
secondary
#AAA15C
accent
#C653D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2F387C

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

Preview Lab → · Contrast checker → · Palette generator →

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