#231381#231381

#231381 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.7% C 0.168 H 276.5°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#231381
RGBrgb(35, 19, 129)
HSLhsl(249, 74%, 29%)
HSVhsv(249, 85%, 51%)
CMYKcmyk(72.9%, 85.3%, 0%, 49.4%)
CIE-LABlab(17.50, 41.55, -57.75)
CIE-LCHlch(17.50, 71.15, 305.73°)
OKLaboklab(30.74% 0.0191 -0.1669)
OKLCHoklch(30.74% 0.168 276.5)
XYZxyz(4.8872, 2.4076, 20.9718)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231381 #718113
analogous
#133A81 #231381 #5A1381
triadic
#231381 #812313 #138123
tetradic
#231381 #81133A #718113 #13815A
square
#231381 #81133A #718113 #13815A
split-complementary
#231381 #815A13 #3A8113
monochromatic
#07041B #150B4C #231381 #311BB6 #482EE0

Accessibility & contrast

On white

14.17
#231381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#231381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231381
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231381#FFFFFF#000000##FFFFFF
##2313811.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F84
Deuteranopia (green-blind)
#00267F
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #231381;
/* rgb */ color: rgb(35, 19, 129);
/* oklch */ color: oklch(30.7% 0.168 276.5);
Tailwind
colors: {
  custom: {
    50: '#6f55a7',
    500: '#231381',
    950: '#000000',
  },
}
SCSS
$custom: #231381;
$custom-light: #6f55a7;
$custom-dark: #000000;
JSON
{
  "hex": "#231381",
  "rgb": {
    "r": 35,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 248.727,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30742,
    "c": 0.16798,
    "h": 276.5
  },
  "luminance": 0.02408
}

Semantic roles & 50–950 ramp

primary
#231381
secondary
#A4B63A
accent
#F137D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #231381

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

Preview Lab → · Contrast checker → · Palette generator →

#231381 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva