#2F396F#2F396F

#2F396F is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.5% C 0.093 H 273.1°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#2F396F
RGBrgb(47, 57, 111)
HSLhsl(231, 41%, 31%)
HSVhsv(231, 58%, 44%)
CMYKcmyk(57.7%, 48.6%, 0%, 56.5%)
CIE-LABlab(25.80, 13.28, -32.70)
CIE-LCHlch(25.80, 35.29, 292.10°)
OKLaboklab(36.53% 0.005 -0.0931)
OKLCHoklch(36.53% 0.093 273.1)
XYZxyz(5.5037, 4.6779, 15.6487)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F396F #6F652F
analogous
#2F596F #2F396F #452F6F
triadic
#2F396F #6F2F39 #396F2F
tetradic
#2F396F #6F2F59 #6F652F #2F6F45
square
#2F396F #6F2F59 #6F652F #2F6F45
split-complementary
#2F396F #6F452F #596F2F
monochromatic
#0B0D19 #1D2344 #2F396F #414F9A #5E6CBB

Accessibility & contrast

On white

10.85
#2F396F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2F396F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F396F
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F396F#FFFFFF#000000##FFFFFF
##2F396F1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214071
Deuteranopia (green-blind)
#183A6E
Tritanopia (blue-blind)
#0D454E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f396f;
/* rgb */ color: rgb(47, 57, 111);
/* oklch */ color: oklch(36.5% 0.093 273.1);
Tailwind
colors: {
  custom: {
    50: '#6d6f99',
    500: '#2f396f',
    950: '#000000',
  },
}
SCSS
$custom: #2f396f;
$custom-light: #6d6f99;
$custom-dark: #000000;
JSON
{
  "hex": "#2f396f",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 111
  },
  "hsl": {
    "h": 230.625,
    "s": 40.506,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36529,
    "c": 0.09327,
    "h": 273.1
  },
  "luminance": 0.04678
}

Semantic roles & 50–950 ramp

primary
#2F396F
secondary
#A09559
accent
#BD57D0
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2F396F

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

Preview Lab → · Contrast checker → · Palette generator →

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