#2F397D#2F397D

#2F397D is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.6% C 0.115 H 273.3°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#2F397D
RGBrgb(47, 57, 125)
HSLhsl(232, 45%, 34%)
HSVhsv(232, 62%, 49%)
CMYKcmyk(62.4%, 54.4%, 0%, 51%)
CIE-LABlab(26.77, 18.40, -40.02)
CIE-LCHlch(26.77, 44.04, 294.69°)
OKLaboklab(37.57% 0.0066 -0.1146)
OKLCHoklch(37.57% 0.115 273.3)
XYZxyz(6.3359, 5.0108, 20.0314)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F397D #7D732F
analogous
#2F607D #2F397D #4C2F7D
triadic
#2F397D #7D2F39 #397D2F
tetradic
#2F397D #7D2F60 #7D732F #2F7D4C
square
#2F397D #7D2F60 #7D732F #2F7D4C
split-complementary
#2F397D #7D4C2F #607D2F
monochromatic
#0E1024 #1E2551 #2F397D #404DA9 #626FC4

Accessibility & contrast

On white

10.49
#2F397D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2F397D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F397D
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F397D#FFFFFF#000000##FFFFFF
##2F397D1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10437F
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f397d;
/* rgb */ color: rgb(47, 57, 125);
/* oklch */ color: oklch(37.6% 0.115 273.3);
Tailwind
colors: {
  custom: {
    50: '#706fa3',
    500: '#2f397d',
    950: '#000000',
  },
}
SCSS
$custom: #2f397d;
$custom-light: #706fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f397d",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 232.308,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37573,
    "c": 0.11484,
    "h": 273.3
  },
  "luminance": 0.05011
}

Semantic roles & 50–950 ramp

primary
#2F397D
secondary
#ABA15D
accent
#C453D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2F397D

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

Preview Lab → · Contrast checker → · Palette generator →

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