#2B317A#2B317A

#2B317A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.123 H 274.7°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#2B317A
RGBrgb(43, 49, 122)
HSLhsl(235, 48%, 32%)
HSVhsv(235, 65%, 48%)
CMYKcmyk(64.8%, 59.8%, 0%, 52.2%)
CIE-LABlab(24.05, 22.01, -42.53)
CIE-LCHlch(24.05, 47.89, 297.36°)
OKLaboklab(35.39% 0.01 -0.1223)
OKLCHoklch(35.39% 0.123 274.7)
XYZxyz(5.6063, 4.1149, 18.9074)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B317A #7A742B
analogous
#2B597A #2B317A #4D2B7A
triadic
#2B317A #7A2B31 #317A2B
tetradic
#2B317A #7A2B59 #7A742B #2B7A4D
square
#2B317A #7A2B59 #7A742B #2B7A4D
split-complementary
#2B317A #7A4D2B #597A2B
monochromatic
#0B0D1F #1B1F4D #2B317A #3B43A7 #5A63C5

Accessibility & contrast

On white

11.52
#2B317A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2B317A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B317A
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B317A#FFFFFF#000000##FFFFFF
##2B317A1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2b317a;
/* rgb */ color: rgb(43, 49, 122);
/* oklch */ color: oklch(35.4% 0.123 274.7);
Tailwind
colors: {
  custom: {
    50: '#6e69a1',
    500: '#2b317a',
    950: '#000000',
  },
}
SCSS
$custom: #2b317a;
$custom-light: #6e69a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b317a",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 235.443,
    "s": 47.879,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35395,
    "c": 0.12267,
    "h": 274.7
  },
  "luminance": 0.04115
}

Semantic roles & 50–950 ramp

primary
#2B317A
secondary
#ABA456
accent
#CD50D7
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #2B317A

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

Preview Lab → · Contrast checker → · Palette generator →

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