#2F378B#2F378B

#2F378B is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.3% C 0.138 H 273.8°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#2F378B
RGBrgb(47, 55, 139)
HSLhsl(235, 49%, 36%)
HSVhsv(235, 66%, 55%)
CMYKcmyk(66.2%, 60.4%, 0%, 45.5%)
CIE-LABlab(27.30, 24.90, -47.89)
CIE-LCHlch(27.30, 53.98, 297.48°)
OKLaboklab(38.31% 0.0091 -0.1378)
OKLCHoklch(38.31% 0.138 273.8)
XYZxyz(7.1971, 5.2002, 25.0455)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F378B #8B832F
analogous
#2F658B #2F378B #552F8B
triadic
#2F378B #8B2F37 #378B2F
tetradic
#2F378B #8B2F65 #8B832F #2F8B55
square
#2F378B #8B2F65 #8B832F #2F8B55
split-complementary
#2F378B #8B552F #658B2F
monochromatic
#101330 #20255D #2F378B #3E49B9 #6871CC

Accessibility & contrast

On white

10.29
#2F378B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2F378B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F378B
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F378B#FFFFFF#000000##FFFFFF
##2F378B1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#004C5B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f378b;
/* rgb */ color: rgb(47, 55, 139);
/* oklch */ color: oklch(38.3% 0.138 273.8);
Tailwind
colors: {
  custom: {
    50: '#736dae',
    500: '#2f378b',
    950: '#000000',
  },
}
SCSS
$custom: #2f378b;
$custom-light: #736dae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f378b",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 139
  },
  "hsl": {
    "h": 234.783,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38312,
    "c": 0.13814,
    "h": 273.8
  },
  "luminance": 0.05201
}

Semantic roles & 50–950 ramp

primary
#2F378B
secondary
#B3AC63
accent
#CD4FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F378B

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

Preview Lab → · Contrast checker → · Palette generator →

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