#2F396B#2F396B

#2F396B is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.2% C 0.087 H 272.8°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#2F396B
RGBrgb(47, 57, 107)
HSLhsl(230, 39%, 30%)
HSVhsv(230, 56%, 42%)
CMYKcmyk(56.1%, 46.7%, 0%, 58%)
CIE-LABlab(25.54, 11.84, -30.55)
CIE-LCHlch(25.54, 32.76, 291.18°)
OKLaboklab(36.25% 0.0043 -0.0868)
OKLCHoklch(36.25% 0.087 272.8)
XYZxyz(5.2884, 4.5918, 14.5147)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F396B #6B612F
analogous
#2F576B #2F396B #432F6B
triadic
#2F396B #6B2F39 #396B2F
tetradic
#2F396B #6B2F57 #6B612F #2F6B43
square
#2F396B #6B2F57 #6B612F #2F6B43
split-complementary
#2F396B #6B432F #576B2F
monochromatic
#0A0C16 #1C2240 #2F396B #425096 #5D6CB8

Accessibility & contrast

On white

10.95
#2F396B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2F396B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F396B
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F396B#FFFFFF#000000##FFFFFF
##2F396B1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#243F6D
Deuteranopia (green-blind)
#1D3A6A
Tritanopia (blue-blind)
#12444C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f396b;
/* rgb */ color: rgb(47, 57, 107);
/* oklch */ color: oklch(36.2% 0.087 272.8);
Tailwind
colors: {
  custom: {
    50: '#6c6f96',
    500: '#2f396b',
    950: '#000000',
  },
}
SCSS
$custom: #2f396b;
$custom-light: #6c6f96;
$custom-dark: #000000;
JSON
{
  "hex": "#2f396b",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 107
  },
  "hsl": {
    "h": 230,
    "s": 38.961,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36249,
    "c": 0.08694,
    "h": 272.8
  },
  "luminance": 0.04592
}

Semantic roles & 50–950 ramp

primary
#2F396B
secondary
#9C9159
accent
#BB59CF
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #2F396B

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

Preview Lab → · Contrast checker → · Palette generator →

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