#2F317D#2F317D

#2F317D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.9% C 0.126 H 276.9°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2F317D
RGBrgb(47, 49, 125)
HSLhsl(238, 45%, 34%)
HSVhsv(238, 62%, 49%)
CMYKcmyk(62.4%, 60.8%, 0%, 51%)
CIE-LABlab(24.58, 23.85, -43.55)
CIE-LCHlch(24.58, 49.66, 298.71°)
OKLaboklab(35.94% 0.015 -0.1251)
OKLCHoklch(35.94% 0.126 276.9)
XYZxyz(5.9711, 4.2812, 19.9098)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F317D #7D7B2F
analogous
#2F587D #2F317D #542F7D
triadic
#2F317D #7D2F31 #317D2F
tetradic
#2F317D #7D2F58 #7D7B2F #2F7D54
square
#2F317D #7D2F58 #7D7B2F #2F7D54
split-complementary
#2F317D #7D542F #587D2F
monochromatic
#0E0E24 #1E2051 #2F317D #4042A9 #6265C4

Accessibility & contrast

On white

11.31
#2F317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F317D
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F317D#FFFFFF#000000##FFFFFF
##2F317D1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f317d;
/* rgb */ color: rgb(47, 49, 125);
/* oklch */ color: oklch(35.9% 0.126 276.9);
Tailwind
colors: {
  custom: {
    50: '#7069a3',
    500: '#2f317d',
    950: '#000000',
  },
}
SCSS
$custom: #2f317d;
$custom-light: #7069a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f317d",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 238.462,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35942,
    "c": 0.12604,
    "h": 276.9
  },
  "luminance": 0.04282
}

Semantic roles & 50–950 ramp

primary
#2F317D
secondary
#ABA95D
accent
#D253D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F317D

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

Preview Lab → · Contrast checker → · Palette generator →

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