#2F397C#2F397C

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

Color values

HEX#2F397C
RGBrgb(47, 57, 124)
HSLhsl(232, 45%, 34%)
HSVhsv(232, 62%, 49%)
CMYKcmyk(62.1%, 54%, 0%, 51.4%)
CIE-LABlab(26.69, 18.03, -39.50)
CIE-LCHlch(26.69, 43.42, 294.54°)
OKLaboklab(37.49% 0.0065 -0.1131)
OKLCHoklch(37.49% 0.113 273.3)
XYZxyz(6.2723, 4.9853, 19.6966)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F397C #7C722F
analogous
#2F5F7C #2F397C #4B2F7C
triadic
#2F397C #7C2F39 #397C2F
tetradic
#2F397C #7C2F5F #7C722F #2F7C4B
square
#2F397C #7C2F5F #7C722F #2F7C4B
split-complementary
#2F397C #7C4B2F #5F7C2F
monochromatic
#0D1023 #1E2550 #2F397C #404DA8 #626FC3

Accessibility & contrast

On white

10.51
#2F397C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F397C
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F397C#FFFFFF#000000##FFFFFF
##2F397C1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12437E
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f397c;
/* rgb */ color: rgb(47, 57, 124);
/* oklch */ color: oklch(37.5% 0.113 273.3);
Tailwind
colors: {
  custom: {
    50: '#6f6fa2',
    500: '#2f397c',
    950: '#000000',
  },
}
SCSS
$custom: #2f397c;
$custom-light: #6f6fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f397c",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 232.208,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37495,
    "c": 0.11334,
    "h": 273.3
  },
  "luminance": 0.04986
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F397C

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

Preview Lab → · Contrast checker → · Palette generator →

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