#2F397A#2F397A

#2F397A is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.3% C 0.110 H 273.3°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#2F397A
RGBrgb(47, 57, 122)
HSLhsl(232, 44%, 33%)
HSVhsv(232, 61%, 48%)
CMYKcmyk(61.5%, 53.3%, 0%, 52.2%)
CIE-LABlab(26.55, 17.30, -38.47)
CIE-LCHlch(26.55, 42.18, 294.21°)
OKLaboklab(37.34% 0.0063 -0.1101)
OKLCHoklch(37.34% 0.11 273.3)
XYZxyz(6.1471, 4.9353, 19.0372)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F397A #7A702F
analogous
#2F5E7A #2F397A #4A2F7A
triadic
#2F397A #7A2F39 #397A2F
tetradic
#2F397A #7A2F5E #7A702F #2F7A4A
square
#2F397A #7A2F5E #7A702F #2F7A4A
split-complementary
#2F397A #7A4A2F #5E7A2F
monochromatic
#0D1022 #1E244E #2F397A #404EA6 #616EC2

Accessibility & contrast

On white

10.57
#2F397A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2F397A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F397A
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F397A#FFFFFF#000000##FFFFFF
##2F397A1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15427C
Deuteranopia (green-blind)
#043C79
Tritanopia (blue-blind)
#004853
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f397a;
/* rgb */ color: rgb(47, 57, 122);
/* oklch */ color: oklch(37.3% 0.110 273.3);
Tailwind
colors: {
  custom: {
    50: '#6f6fa1',
    500: '#2f397a',
    950: '#000000',
  },
}
SCSS
$custom: #2f397a;
$custom-light: #6f6fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f397a",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 122
  },
  "hsl": {
    "h": 232,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37342,
    "c": 0.1103,
    "h": 273.3
  },
  "luminance": 0.04936
}

Semantic roles & 50–950 ramp

primary
#2F397A
secondary
#A99F5C
accent
#C354D4
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #2F397A

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

Preview Lab → · Contrast checker → · Palette generator →

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