#231981#231981

#231981 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.163 H 275.8°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#231981
RGBrgb(35, 25, 129)
HSLhsl(246, 68%, 30%)
HSVhsv(246, 81%, 51%)
CMYKcmyk(72.9%, 80.6%, 0%, 49.4%)
CIE-LABlab(18.53, 38.54, -56.04)
CIE-LCHlch(18.53, 68.02, 304.52°)
OKLaboklab(31.46% 0.0165 -0.162)
OKLCHoklch(31.46% 0.163 275.8)
XYZxyz(5.0019, 2.6371, 21.0100)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231981 #778119
analogous
#194381 #231981 #571981
triadic
#231981 #812319 #198123
tetradic
#231981 #811943 #778119 #198157
square
#231981 #811943 #778119 #198157
split-complementary
#231981 #815719 #438119
monochromatic
#07051A #150F4E #231981 #3123B4 #4A3BD9

Accessibility & contrast

On white

13.75
#231981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#231981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231981
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231981#FFFFFF#000000##FFFFFF
##2319811.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #231981;
/* rgb */ color: rgb(35, 25, 129);
/* oklch */ color: oklch(31.5% 0.163 275.8);
Tailwind
colors: {
  custom: {
    50: '#6e58a7',
    500: '#231981',
    950: '#000000',
  },
}
SCSS
$custom: #231981;
$custom-light: #6e58a7;
$custom-dark: #000000;
JSON
{
  "hex": "#231981",
  "rgb": {
    "r": 35,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 245.769,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31458,
    "c": 0.16286,
    "h": 275.8
  },
  "luminance": 0.02638
}

Semantic roles & 50–950 ramp

primary
#231981
secondary
#AAB541
accent
#EA3DDA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #231981

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

Preview Lab → · Contrast checker → · Palette generator →

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