#2B317D#2B317D

#2B317D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.127 H 274.5°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#2B317D
RGBrgb(43, 49, 125)
HSLhsl(236, 49%, 33%)
HSVhsv(236, 66%, 49%)
CMYKcmyk(65.6%, 60.8%, 0%, 51%)
CIE-LABlab(24.29, 23.12, -44.03)
CIE-LCHlch(24.29, 49.74, 297.70°)
OKLaboklab(35.65% 0.01 -0.1267)
OKLCHoklch(35.65% 0.127 274.5)
XYZxyz(5.7950, 4.1904, 19.9015)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B317D #7D772B
analogous
#2B5A7D #2B317D #4E2B7D
triadic
#2B317D #7D2B31 #317D2B
tetradic
#2B317D #7D2B5A #7D772B #2B7D4E
square
#2B317D #7D2B5A #7D772B #2B7D4E
split-complementary
#2B317D #7D4E2B #5A7D2B
monochromatic
#0C0D22 #1B1F4F #2B317D #3B43AB #5C63C7

Accessibility & contrast

On white

11.42
#2B317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2B317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B317D
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B317D#FFFFFF#000000##FFFFFF
##2B317D1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b317d;
/* rgb */ color: rgb(43, 49, 125);
/* oklch */ color: oklch(35.7% 0.127 274.5);
Tailwind
colors: {
  custom: {
    50: '#6e69a3',
    500: '#2b317d',
    950: '#000000',
  },
}
SCSS
$custom: #2b317d;
$custom-light: #6e69a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b317d",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 235.61,
    "s": 48.81,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35652,
    "c": 0.12708,
    "h": 274.5
  },
  "luminance": 0.04191
}

Semantic roles & 50–950 ramp

primary
#2B317D
secondary
#ADA657
accent
#CE4FD8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2B317D

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

Preview Lab → · Contrast checker → · Palette generator →

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