#2F397E#2F397E

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

Color values

HEX#2F397E
RGBrgb(47, 57, 126)
HSLhsl(232, 46%, 34%)
HSVhsv(232, 63%, 49%)
CMYKcmyk(62.7%, 54.8%, 0%, 50.6%)
CIE-LABlab(26.84, 18.77, -40.53)
CIE-LCHlch(26.84, 44.66, 294.85°)
OKLaboklab(37.65% 0.0067 -0.1162)
OKLCHoklch(37.65% 0.116 273.3)
XYZxyz(6.4001, 5.0364, 20.3695)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F397E #7E742F
analogous
#2F617E #2F397E #4D2F7E
triadic
#2F397E #7E2F39 #397E2F
tetradic
#2F397E #7E2F61 #7E742F #2F7E4D
square
#2F397E #7E2F61 #7E742F #2F7E4D
split-complementary
#2F397E #7E4D2F #617E2F
monochromatic
#0E1125 #1E2551 #2F397E #404DAB #636FC5

Accessibility & contrast

On white

10.46
#2F397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F397E
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F397E#FFFFFF#000000##FFFFFF
##2F397E1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4380
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f397e;
/* rgb */ color: rgb(47, 57, 126);
/* oklch */ color: oklch(37.7% 0.116 273.3);
Tailwind
colors: {
  custom: {
    50: '#706fa4',
    500: '#2f397e',
    950: '#000000',
  },
}
SCSS
$custom: #2f397e;
$custom-light: #706fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f397e",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 232.405,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37651,
    "c": 0.11635,
    "h": 273.3
  },
  "luminance": 0.05037
}

Semantic roles & 50–950 ramp

primary
#2F397E
secondary
#ACA25D
accent
#C552D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2F397E

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

Preview Lab → · Contrast checker → · Palette generator →

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