#232981#232981

#232981 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.145 H 272.7°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#232981
RGBrgb(35, 41, 129)
HSLhsl(236, 57%, 32%)
HSVhsv(236, 73%, 51%)
CMYKcmyk(72.9%, 68.2%, 0%, 49.4%)
CIE-LABlab(22.04, 28.79, -50.25)
CIE-LCHlch(22.04, 57.91, 299.81°)
OKLaboklab(33.97% 0.0069 -0.1452)
OKLCHoklch(33.97% 0.145 272.7)
XYZxyz(5.4472, 3.5276, 21.1585)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#232981 #817B23
analogous
#235881 #232981 #4C2381
triadic
#232981 #812329 #298123
tetradic
#232981 #812358 #817B23 #23814C
square
#232981 #812358 #817B23 #23814C
split-complementary
#232981 #814C23 #588123
monochromatic
#090A21 #161A51 #232981 #3038B1 #4F57CF

Accessibility & contrast

On white

12.31
#232981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#232981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #232981
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##232981#FFFFFF#000000##FFFFFF
##2329811.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #232981;
/* rgb */ color: rgb(35, 41, 129);
/* oklch */ color: oklch(34.0% 0.145 272.7);
Tailwind
colors: {
  custom: {
    50: '#6c63a6',
    500: '#232981',
    950: '#000000',
  },
}
SCSS
$custom: #232981;
$custom-light: #6c63a6;
$custom-dark: #000000;
JSON
{
  "hex": "#232981",
  "rgb": {
    "r": 35,
    "g": 41,
    "b": 129
  },
  "hsl": {
    "h": 236.17,
    "s": 57.317,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3397,
    "c": 0.14536,
    "h": 272.7
  },
  "luminance": 0.03528
}

Semantic roles & 50–950 ramp

primary
#232981
secondary
#B3AC4D
accent
#D747E1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #232981

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

Preview Lab → · Contrast checker → · Palette generator →

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