#2F387D#2F387D

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

Color values

HEX#2F387D
RGBrgb(47, 56, 125)
HSLhsl(233, 45%, 34%)
HSVhsv(233, 62%, 49%)
CMYKcmyk(62.4%, 55.2%, 0%, 51%)
CIE-LABlab(26.49, 19.08, -40.47)
CIE-LCHlch(26.49, 44.74, 295.25°)
OKLaboklab(37.36% 0.0077 -0.116)
OKLCHoklch(37.36% 0.116 273.8)
XYZxyz(6.2869, 4.9129, 20.0150)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F387D #7D742F
analogous
#2F5F7D #2F387D #4D2F7D
triadic
#2F387D #7D2F38 #387D2F
tetradic
#2F387D #7D2F5F #7D742F #2F7D4D
square
#2F387D #7D2F5F #7D742F #2F7D4D
split-complementary
#2F387D #7D4D2F #5F7D2F
monochromatic
#0E1024 #1E2451 #2F387D #404CA9 #626EC4

Accessibility & contrast

On white

10.59
#2F387D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F387D
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F387D#FFFFFF#000000##FFFFFF
##2F387D1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f387d;
/* rgb */ color: rgb(47, 56, 125);
/* oklch */ color: oklch(37.4% 0.116 273.8);
Tailwind
colors: {
  custom: {
    50: '#706ea3',
    500: '#2f387d',
    950: '#000000',
  },
}
SCSS
$custom: #2f387d;
$custom-light: #706ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f387d",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 125
  },
  "hsl": {
    "h": 233.077,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37362,
    "c": 0.11625,
    "h": 273.8
  },
  "luminance": 0.04913
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F387D

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

Preview Lab → · Contrast checker → · Palette generator →

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