#231D98#231D98

#231D98 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.188 H 272.8°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#231D98
RGBrgb(35, 29, 152)
HSLhsl(243, 68%, 35%)
HSVhsv(243, 81%, 60%)
CMYKcmyk(77%, 80.9%, 0%, 40.4%)
CIE-LABlab(21.95, 43.96, -64.73)
CIE-LCHlch(21.95, 78.25, 304.18°)
OKLaboklab(34.64% 0.0091 -0.1873)
OKLCHoklch(34.64% 0.188 272.8)
XYZxyz(6.7981, 3.5023, 30.0174)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231D98 #92981D
analogous
#1D5498 #231D98 #601D98
triadic
#231D98 #98231D #1D9823
tetradic
#231D98 #981D54 #92981D #1D9860
square
#231D98 #981D54 #92981D #1D9860
split-complementary
#231D98 #98601D #54981D
monochromatic
#0B0931 #171365 #231D98 #2F27CB #5852DE

Accessibility & contrast

On white

12.35
#231D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#231D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231D98
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231D98#FFFFFF#000000##FFFFFF
##231D981.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9B
Deuteranopia (green-blind)
#002E96
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #231d98;
/* rgb */ color: rgb(35, 29, 152);
/* oklch */ color: oklch(34.6% 0.188 272.8);
Tailwind
colors: {
  custom: {
    50: '#735cb8',
    500: '#231d98',
    950: '#000000',
  },
}
SCSS
$custom: #231d98;
$custom-light: #735cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#231d98",
  "rgb": {
    "r": 35,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 242.927,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34639,
    "c": 0.18753,
    "h": 272.8
  },
  "luminance": 0.03503
}

Semantic roles & 50–950 ramp

primary
#231D98
secondary
#BBC150
accent
#EB3DE2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #231D98

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

Preview Lab → · Contrast checker → · Palette generator →

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