#231E98#231E98

#231E98 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.187 H 272.7°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#231E98
RGBrgb(35, 30, 152)
HSLhsl(242, 67%, 36%)
HSVhsv(242, 80%, 60%)
CMYKcmyk(77%, 80.3%, 0%, 40.4%)
CIE-LABlab(22.13, 43.44, -64.43)
CIE-LCHlch(22.13, 77.71, 303.99°)
OKLaboklab(34.76% 0.0088 -0.1865)
OKLCHoklch(34.76% 0.187 272.7)
XYZxyz(6.8230, 3.5521, 30.0257)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231E98 #93981E
analogous
#1E5698 #231E98 #601E98
triadic
#231E98 #98231E #1E9823
tetradic
#231E98 #981E56 #93981E #1E9860
square
#231E98 #981E56 #93981E #1E9860
split-complementary
#231E98 #98601E #56981E
monochromatic
#0B0A32 #171465 #231E98 #2F28CB #5953DD

Accessibility & contrast

On white

12.28
#231E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#231E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231E98
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231E98#FFFFFF#000000##FFFFFF
##231E981.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#002F96
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #231e98;
/* rgb */ color: rgb(35, 30, 152);
/* oklch */ color: oklch(34.8% 0.187 272.7);
Tailwind
colors: {
  custom: {
    50: '#735db8',
    500: '#231e98',
    950: '#000000',
  },
}
SCSS
$custom: #231e98;
$custom-light: #735db8;
$custom-dark: #000000;
JSON
{
  "hex": "#231e98",
  "rgb": {
    "r": 35,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 242.459,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.34764,
    "c": 0.18667,
    "h": 272.7
  },
  "luminance": 0.03553
}

Semantic roles & 50–950 ramp

primary
#231E98
secondary
#BCC051
accent
#EA3EE3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #231E98

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

Preview Lab → · Contrast checker → · Palette generator →

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