#231781#231781

#231781 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.165 H 276.1°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#231781
RGBrgb(35, 23, 129)
HSLhsl(247, 70%, 30%)
HSVhsv(247, 82%, 51%)
CMYKcmyk(72.9%, 82.2%, 0%, 49.4%)
CIE-LABlab(18.16, 39.60, -56.64)
CIE-LCHlch(18.16, 69.11, 304.96°)
OKLaboklab(31.21% 0.0175 -0.1637)
OKLCHoklch(31.21% 0.165 276.1)
XYZxyz(4.9607, 2.5546, 20.9963)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231781 #758117
analogous
#174081 #231781 #581781
triadic
#231781 #812317 #178123
tetradic
#231781 #811740 #758117 #178158
square
#231781 #811740 #758117 #178158
split-complementary
#231781 #815817 #408117
monochromatic
#07051A #150E4D #231781 #3120B5 #4A37DB

Accessibility & contrast

On white

13.90
#231781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#231781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231781
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231781#FFFFFF#000000##FFFFFF
##2317811.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #231781;
/* rgb */ color: rgb(35, 23, 129);
/* oklch */ color: oklch(31.2% 0.165 276.1);
Tailwind
colors: {
  custom: {
    50: '#6e57a7',
    500: '#231781',
    950: '#000000',
  },
}
SCSS
$custom: #231781;
$custom-light: #6e57a7;
$custom-dark: #000000;
JSON
{
  "hex": "#231781",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 246.792,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31205,
    "c": 0.16467,
    "h": 276.1
  },
  "luminance": 0.02555
}

Semantic roles & 50–950 ramp

primary
#231781
secondary
#A8B53E
accent
#ED3BD8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #231781

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

Preview Lab → · Contrast checker → · Palette generator →

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