#231A98#231A98

#231A98 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.190 H 273.1°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#231A98
RGBrgb(35, 26, 152)
HSLhsl(244, 71%, 35%)
HSVhsv(244, 83%, 60%)
CMYKcmyk(77%, 82.9%, 0%, 40.4%)
CIE-LABlab(21.44, 45.45, -65.58)
CIE-LCHlch(21.44, 79.79, 304.72°)
OKLaboklab(34.28% 0.0101 -0.1897)
OKLCHoklch(34.28% 0.19 273.1)
XYZxyz(6.7281, 3.3624, 29.9941)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231A98 #8F981A
analogous
#1A5098 #231A98 #621A98
triadic
#231A98 #98231A #1A9823
tetradic
#231A98 #981A50 #8F981A #1A9862
square
#231A98 #981A50 #8F981A #1A9862
split-complementary
#231A98 #98621A #50981A
monochromatic
#0B082F #171164 #231A98 #2F23CC #574CE0

Accessibility & contrast

On white

12.56
#231A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#231A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231A98
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231A98#FFFFFF#000000##FFFFFF
##231A981.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399B
Deuteranopia (green-blind)
#002D96
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #231a98;
/* rgb */ color: rgb(35, 26, 152);
/* oklch */ color: oklch(34.3% 0.190 273.1);
Tailwind
colors: {
  custom: {
    50: '#745bb8',
    500: '#231a98',
    950: '#000000',
  },
}
SCSS
$custom: #231a98;
$custom-light: #745bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#231a98",
  "rgb": {
    "r": 35,
    "g": 26,
    "b": 152
  },
  "hsl": {
    "h": 244.286,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34283,
    "c": 0.18999,
    "h": 273.1
  },
  "luminance": 0.03363
}

Semantic roles & 50–950 ramp

primary
#231A98
secondary
#BAC24B
accent
#EE3AE1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #231A98

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

Preview Lab → · Contrast checker → · Palette generator →

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