#231F95#231F95

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

Color values

HEX#231F95
RGBrgb(35, 31, 149)
HSLhsl(242, 66%, 35%)
HSVhsv(242, 79%, 58%)
CMYKcmyk(76.5%, 79.2%, 0%, 41.6%)
CIE-LABlab(21.97, 41.92, -62.86)
CIE-LCHlch(21.97, 75.55, 303.70°)
OKLaboklab(34.55% 0.0091 -0.1819)
OKLCHoklch(34.55% 0.182 272.9)
XYZxyz(6.6061, 3.5065, 28.7566)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F95 #91951F
analogous
#1F5695 #231F95 #5E1F95
triadic
#231F95 #95231F #1F9523
tetradic
#231F95 #951F56 #91951F #1F955E
square
#231F95 #951F56 #91951F #1F955E
split-complementary
#231F95 #955E1F #56951F
monochromatic
#0B0A30 #171462 #231F95 #2F2AC8 #5853DB

Accessibility & contrast

On white

12.34
#231F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231F95
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F95#FFFFFF#000000##FFFFFF
##231F951.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#002F93
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #231f95;
/* rgb */ color: rgb(35, 31, 149);
/* oklch */ color: oklch(34.5% 0.182 272.9);
Tailwind
colors: {
  custom: {
    50: '#725db5',
    500: '#231f95',
    950: '#000000',
  },
}
SCSS
$custom: #231f95;
$custom-light: #725db5;
$custom-dark: #000000;
JSON
{
  "hex": "#231f95",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 242.034,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34547,
    "c": 0.18212,
    "h": 272.9
  },
  "luminance": 0.03507
}

Semantic roles & 50–950 ramp

primary
#231F95
secondary
#BBBF51
accent
#E93FE3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #231F95

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

Preview Lab → · Contrast checker → · Palette generator →

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