#231B82#231B82

#231B82 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.162 H 275.4°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#231B82
RGBrgb(35, 27, 130)
HSLhsl(245, 66%, 31%)
HSVhsv(245, 79%, 51%)
CMYKcmyk(73.1%, 79.2%, 0%, 49%)
CIE-LABlab(19.02, 37.78, -55.85)
CIE-LCHlch(19.02, 67.43, 304.08°)
OKLaboklab(31.84% 0.0153 -0.1615)
OKLCHoklch(31.84% 0.162 275.4)
XYZxyz(5.1130, 2.7524, 21.3766)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231B82 #7A821B
analogous
#1B4682 #231B82 #561B82
triadic
#231B82 #82231B #1B8223
tetradic
#231B82 #821B46 #7A821B #1B8256
square
#231B82 #821B46 #7A821B #1B8256
split-complementary
#231B82 #82561B #46821B
monochromatic
#08061D #15104F #231B82 #3126B5 #4C40D7

Accessibility & contrast

On white

13.54
#231B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#231B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231B82
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231B82#FFFFFF#000000##FFFFFF
##231B821.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002A80
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #231b82;
/* rgb */ color: rgb(35, 27, 130);
/* oklch */ color: oklch(31.8% 0.162 275.4);
Tailwind
colors: {
  custom: {
    50: '#6e5aa7',
    500: '#231b82',
    950: '#000000',
  },
}
SCSS
$custom: #231b82;
$custom-light: #6e5aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#231b82",
  "rgb": {
    "r": 35,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 244.66,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3184,
    "c": 0.16222,
    "h": 275.4
  },
  "luminance": 0.02753
}

Semantic roles & 50–950 ramp

primary
#231B82
secondary
#ADB643
accent
#E93FDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #231B82

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

Preview Lab → · Contrast checker → · Palette generator →

#231B82 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva