#2B31B2#2B31B2

#2B31B2 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.7% C 0.198 H 271.5°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#2B31B2
RGBrgb(43, 49, 178)
HSLhsl(237, 61%, 43%)
HSVhsv(237, 76%, 70%)
CMYKcmyk(75.8%, 72.5%, 0%, 30.2%)
CIE-LABlab(29.22, 42.14, -68.45)
CIE-LCHlch(29.22, 80.38, 301.61°)
OKLaboklab(40.74% 0.0053 -0.1981)
OKLCHoklch(40.74% 0.198 271.5)
XYZxyz(10.1277, 5.9235, 42.7204)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B31B2 #B2AC2B
analogous
#2B74B2 #2B31B2 #682BB2
triadic
#2B31B2 #B22B31 #31B22B
tetradic
#2B31B2 #B22B74 #B2AC2B #2BB268
square
#2B31B2 #B22B74 #B2AC2B #2BB268
split-complementary
#2B31B2 #B2682B #74B22B
monochromatic
#13164F #1F2381 #2B31B2 #484ED3 #797DDF

Accessibility & contrast

On white

9.61
#2B31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2B31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B31B2
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B31B2#FFFFFF#000000##FFFFFF
##2B31B21.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#003EB0
Tritanopia (blue-blind)
#00566E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2b31b2;
/* rgb */ color: rgb(43, 49, 178);
/* oklch */ color: oklch(40.7% 0.198 271.5);
Tailwind
colors: {
  custom: {
    50: '#7b6aca',
    500: '#2b31b2',
    950: '#000000',
  },
}
SCSS
$custom: #2b31b2;
$custom-light: #7b6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#2b31b2",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 237.333,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40743,
    "c": 0.19821,
    "h": 271.5
  },
  "luminance": 0.05925
}

Semantic roles & 50–950 ramp

primary
#2B31B2
secondary
#C7C372
accent
#DD44E4
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2B31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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