#2B317F#2B317F

#2B317F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.130 H 274.4°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#2B317F
RGBrgb(43, 49, 127)
HSLhsl(236, 49%, 33%)
HSVhsv(236, 66%, 50%)
CMYKcmyk(66.1%, 61.4%, 0%, 50.2%)
CIE-LABlab(24.46, 23.86, -45.03)
CIE-LCHlch(24.46, 50.96, 297.92°)
OKLaboklab(35.83% 0.01 -0.1296)
OKLCHoklch(35.83% 0.13 274.4)
XYZxyz(5.9241, 4.2420, 20.5812)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B317F #7F792B
analogous
#2B5B7F #2B317F #4F2B7F
triadic
#2B317F #7F2B31 #317F2B
tetradic
#2B317F #7F2B5B #7F792B #2B7F4F
square
#2B317F #7F2B5B #7F792B #2B7F4F
split-complementary
#2B317F #7F4F2B #5B7F2B
monochromatic
#0C0E24 #1C1F51 #2B317F #3A43AD #5C64C8

Accessibility & contrast

On white

11.36
#2B317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2B317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B317F
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B317F#FFFFFF#000000##FFFFFF
##2B317F1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b317f;
/* rgb */ color: rgb(43, 49, 127);
/* oklch */ color: oklch(35.8% 0.130 274.4);
Tailwind
colors: {
  custom: {
    50: '#6f69a5',
    500: '#2b317f',
    950: '#000000',
  },
}
SCSS
$custom: #2b317f;
$custom-light: #6f69a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b317f",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 235.714,
    "s": 49.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35826,
    "c": 0.12999,
    "h": 274.4
  },
  "luminance": 0.04243
}

Semantic roles & 50–950 ramp

primary
#2B317F
secondary
#AEA858
accent
#CF4FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2B317F

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

Preview Lab → · Contrast checker → · Palette generator →

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