#2F397F#2F397F

#2F397F is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.7% C 0.118 H 273.3°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#2F397F
RGBrgb(47, 57, 127)
HSLhsl(233, 46%, 34%)
HSVhsv(233, 63%, 50%)
CMYKcmyk(63%, 55.1%, 0%, 50.2%)
CIE-LABlab(26.91, 19.14, -41.04)
CIE-LCHlch(26.91, 45.28, 295.00°)
OKLaboklab(37.73% 0.0067 -0.1176)
OKLCHoklch(37.73% 0.118 273.3)
XYZxyz(6.4649, 5.0624, 20.7110)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F397F #7F752F
analogous
#2F617F #2F397F #4D2F7F
triadic
#2F397F #7F2F39 #397F2F
tetradic
#2F397F #7F2F61 #7F752F #2F7F4D
square
#2F397F #7F2F61 #7F752F #2F7F4D
split-complementary
#2F397F #7F4D2F #617F2F
monochromatic
#0E1126 #1E2552 #2F397F #404DAC #636FC5

Accessibility & contrast

On white

10.43
#2F397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2F397F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F397F
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F397F#FFFFFF#000000##FFFFFF
##2F397F1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4381
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#004956
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f397f;
/* rgb */ color: rgb(47, 57, 127);
/* oklch */ color: oklch(37.7% 0.118 273.3);
Tailwind
colors: {
  custom: {
    50: '#706fa5',
    500: '#2f397f',
    950: '#000000',
  },
}
SCSS
$custom: #2f397f;
$custom-light: #706fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f397f",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 232.5,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3773,
    "c": 0.11784,
    "h": 273.3
  },
  "luminance": 0.05063
}

Semantic roles & 50–950 ramp

primary
#2F397F
secondary
#ACA25E
accent
#C552D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2F397F

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

Preview Lab → · Contrast checker → · Palette generator →

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