#231C98#231C98

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

Color values

HEX#231C98
RGBrgb(35, 28, 152)
HSLhsl(243, 69%, 35%)
HSVhsv(243, 82%, 60%)
CMYKcmyk(77%, 81.6%, 0%, 40.4%)
CIE-LABlab(21.78, 44.47, -65.02)
CIE-LCHlch(21.78, 78.77, 304.37°)
OKLaboklab(34.52% 0.0095 -0.1881)
OKLCHoklch(34.52% 0.188 272.9)
XYZxyz(6.7740, 3.4541, 30.0094)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231C98 #91981C
analogous
#1C5398 #231C98 #611C98
triadic
#231C98 #98231C #1C9823
tetradic
#231C98 #981C53 #91981C #1C9861
square
#231C98 #981C53 #91981C #1C9861
split-complementary
#231C98 #98611C #53981C
monochromatic
#0B0931 #171264 #231C98 #2F26CC #5850DF

Accessibility & contrast

On white

12.42
#231C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#231C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231C98
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231C98#FFFFFF#000000##FFFFFF
##231C981.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #231c98;
/* rgb */ color: rgb(35, 28, 152);
/* oklch */ color: oklch(34.5% 0.188 272.9);
Tailwind
colors: {
  custom: {
    50: '#735cb8',
    500: '#231c98',
    950: '#000000',
  },
}
SCSS
$custom: #231c98;
$custom-light: #735cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#231c98",
  "rgb": {
    "r": 35,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 243.387,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34517,
    "c": 0.18837,
    "h": 272.9
  },
  "luminance": 0.03455
}

Semantic roles & 50–950 ramp

primary
#231C98
secondary
#BBC14E
accent
#EC3CE2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #231C98

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

Preview Lab → · Contrast checker → · Palette generator →

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