#231C81#231C81

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

Color values

HEX#231C81
RGBrgb(35, 28, 129)
HSLhsl(244, 64%, 31%)
HSVhsv(244, 78%, 51%)
CMYKcmyk(72.9%, 78.3%, 0%, 49.4%)
CIE-LABlab(19.11, 36.88, -55.08)
CIE-LCHlch(19.11, 66.29, 303.81°)
OKLaboklab(31.87% 0.015 -0.1593)
OKLCHoklch(31.87% 0.16 275.4)
XYZxyz(5.0695, 2.7723, 21.0326)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231C81 #7A811C
analogous
#1C4781 #231C81 #551C81
triadic
#231C81 #81231C #1C8123
tetradic
#231C81 #811C47 #7A811C #1C8155
square
#231C81 #811C47 #7A811C #1C8155
split-complementary
#231C81 #81551C #47811C
monochromatic
#08061C #15114F #231C81 #3127B3 #4C42D6

Accessibility & contrast

On white

13.51
#231C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231C81
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231C81#FFFFFF#000000##FFFFFF
##231C811.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #231c81;
/* rgb */ color: rgb(35, 28, 129);
/* oklch */ color: oklch(31.9% 0.160 275.4);
Tailwind
colors: {
  custom: {
    50: '#6e5aa7',
    500: '#231c81',
    950: '#000000',
  },
}
SCSS
$custom: #231c81;
$custom-light: #6e5aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#231c81",
  "rgb": {
    "r": 35,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 244.158,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31866,
    "c": 0.15997,
    "h": 275.4
  },
  "luminance": 0.02773
}

Semantic roles & 50–950 ramp

primary
#231C81
secondary
#ADB444
accent
#E740DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #231C81

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

Preview Lab → · Contrast checker → · Palette generator →

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