#2F397B#2F397B

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

Color values

HEX#2F397B
RGBrgb(47, 57, 123)
HSLhsl(232, 45%, 33%)
HSVhsv(232, 62%, 48%)
CMYKcmyk(61.8%, 53.7%, 0%, 51.8%)
CIE-LABlab(26.62, 17.66, -38.99)
CIE-LCHlch(26.62, 42.80, 294.37°)
OKLaboklab(37.42% 0.0064 -0.1116)
OKLCHoklch(37.42% 0.112 273.3)
XYZxyz(6.2094, 4.9602, 19.3652)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F397B #7B712F
analogous
#2F5F7B #2F397B #4B2F7B
triadic
#2F397B #7B2F39 #397B2F
tetradic
#2F397B #7B2F5F #7B712F #2F7B4B
square
#2F397B #7B2F5F #7B712F #2F7B4B
split-complementary
#2F397B #7B4B2F #5F7B2F
monochromatic
#0D1022 #1E244F #2F397B #404EA7 #626EC3

Accessibility & contrast

On white

10.54
#2F397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F397B
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F397B#FFFFFF#000000##FFFFFF
##2F397B1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14427D
Deuteranopia (green-blind)
#023C7A
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f397b;
/* rgb */ color: rgb(47, 57, 123);
/* oklch */ color: oklch(37.4% 0.112 273.3);
Tailwind
colors: {
  custom: {
    50: '#6f6fa2',
    500: '#2f397b',
    950: '#000000',
  },
}
SCSS
$custom: #2f397b;
$custom-light: #6f6fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f397b",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 232.105,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37418,
    "c": 0.11182,
    "h": 273.3
  },
  "luminance": 0.04961
}

Semantic roles & 50–950 ramp

primary
#2F397B
secondary
#AAA05C
accent
#C353D4
background
#F7F6FA
surface
#EDECF3
border
#C8C7CD
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2F397B

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

Preview Lab → · Contrast checker → · Palette generator →

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