#231F93#231F93

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

Color values

HEX#231F93
RGBrgb(35, 31, 147)
HSLhsl(242, 65%, 35%)
HSVhsv(242, 79%, 58%)
CMYKcmyk(76.2%, 78.9%, 0%, 42.4%)
CIE-LABlab(21.74, 41.26, -62.00)
CIE-LCHlch(21.74, 74.47, 303.64°)
OKLaboklab(34.32% 0.0095 -0.1794)
OKLCHoklch(34.32% 0.18 273)
XYZxyz(6.4478, 3.4432, 27.9229)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F93 #8F931F
analogous
#1F5593 #231F93 #5D1F93
triadic
#231F93 #93231F #1F9323
tetradic
#231F93 #931F55 #8F931F #1F935D
square
#231F93 #931F55 #8F931F #1F935D
split-complementary
#231F93 #935D1F #55931F
monochromatic
#0B0A2E #171460 #231F93 #2F2AC6 #5752DA

Accessibility & contrast

On white

12.43
#231F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231F93
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F93#FFFFFF#000000##FFFFFF
##231F931.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#002E91
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #231f93;
/* rgb */ color: rgb(35, 31, 147);
/* oklch */ color: oklch(34.3% 0.180 273.0);
Tailwind
colors: {
  custom: {
    50: '#725db4',
    500: '#231f93',
    950: '#000000',
  },
}
SCSS
$custom: #231f93;
$custom-light: #725db4;
$custom-dark: #000000;
JSON
{
  "hex": "#231f93",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 242.069,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34318,
    "c": 0.17966,
    "h": 273
  },
  "luminance": 0.03444
}

Semantic roles & 50–950 ramp

primary
#231F93
secondary
#BABE50
accent
#E840E2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #231F93

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

Preview Lab → · Contrast checker → · Palette generator →

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