#231F97#231F97

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

Color values

HEX#231F97
RGBrgb(35, 31, 151)
HSLhsl(242, 66%, 36%)
HSVhsv(242, 79%, 59%)
CMYKcmyk(76.8%, 79.5%, 0%, 40.8%)
CIE-LABlab(22.20, 42.58, -63.71)
CIE-LCHlch(22.20, 76.63, 303.76°)
OKLaboklab(34.78% 0.0086 -0.1844)
OKLCHoklch(34.78% 0.185 272.7)
XYZxyz(6.7672, 3.5709, 29.6048)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F97 #93971F
analogous
#1F5797 #231F97 #5F1F97
triadic
#231F97 #97231F #1F9723
tetradic
#231F97 #971F57 #93971F #1F975F
square
#231F97 #971F57 #93971F #1F975F
split-complementary
#231F97 #975F1F #57971F
monochromatic
#0B0A31 #171564 #231F97 #2F29CA #5954DC

Accessibility & contrast

On white

12.25
#231F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231F97
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F97#FFFFFF#000000##FFFFFF
##231F971.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #231f97;
/* rgb */ color: rgb(35, 31, 151);
/* oklch */ color: oklch(34.8% 0.185 272.7);
Tailwind
colors: {
  custom: {
    50: '#735db7',
    500: '#231f97',
    950: '#000000',
  },
}
SCSS
$custom: #231f97;
$custom-light: #735db7;
$custom-dark: #000000;
JSON
{
  "hex": "#231f97",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 242,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.34777,
    "c": 0.18456,
    "h": 272.7
  },
  "luminance": 0.03572
}

Semantic roles & 50–950 ramp

primary
#231F97
secondary
#BCBF52
accent
#E93FE3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #231F97

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

Preview Lab → · Contrast checker → · Palette generator →

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