#2B31A9#2B31A9

#2B31A9 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.8% C 0.187 H 272.0°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#2B31A9
RGBrgb(43, 49, 169)
HSLhsl(237, 59%, 42%)
HSVhsv(237, 75%, 66%)
CMYKcmyk(74.6%, 71%, 0%, 33.7%)
CIE-LABlab(28.31, 39.02, -64.56)
CIE-LCHlch(28.31, 75.44, 301.15°)
OKLaboklab(39.82% 0.0065 -0.1868)
OKLCHoklch(39.82% 0.187 272)
XYZxyz(9.2536, 5.5738, 38.1166)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B31A9 #A9A32B
analogous
#2B70A9 #2B31A9 #642BA9
triadic
#2B31A9 #A92B31 #31A92B
tetradic
#2B31A9 #A92B70 #A9A32B #2BA964
square
#2B31A9 #A92B70 #A9A32B #2BA964
split-complementary
#2B31A9 #A9642B #70A92B
monochromatic
#121547 #1F2378 #2B31A9 #4249CF #7378DB

Accessibility & contrast

On white

9.93
#2B31A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2B31A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B31A9
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B31A9#FFFFFF#000000##FFFFFF
##2B31A91.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AD
Deuteranopia (green-blind)
#003DA7
Tritanopia (blue-blind)
#005269
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2b31a9;
/* rgb */ color: rgb(43, 49, 169);
/* oklch */ color: oklch(39.8% 0.187 272.0);
Tailwind
colors: {
  custom: {
    50: '#786ac4',
    500: '#2b31a9',
    950: '#000000',
  },
}
SCSS
$custom: #2b31a9;
$custom-light: #786ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b31a9",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 169
  },
  "hsl": {
    "h": 237.143,
    "s": 59.434,
    "l": 41.569
  },
  "oklch": {
    "l": 0.3982,
    "c": 0.1869,
    "h": 272
  },
  "luminance": 0.05575
}

Semantic roles & 50–950 ramp

primary
#2B31A9
secondary
#C3BF6D
accent
#DB45E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2B31A9

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

Preview Lab → · Contrast checker → · Palette generator →

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