#231F94#231F94

#231F94 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.181 H 273.0°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#231F94
RGBrgb(35, 31, 148)
HSLhsl(242, 65%, 35%)
HSVhsv(242, 79%, 58%)
CMYKcmyk(76.4%, 79.1%, 0%, 42%)
CIE-LABlab(21.85, 41.59, -62.43)
CIE-LCHlch(21.85, 75.01, 303.67°)
OKLaboklab(34.43% 0.0093 -0.1806)
OKLCHoklch(34.43% 0.181 273)
XYZxyz(6.5266, 3.4747, 28.3380)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F94 #90941F
analogous
#1F5694 #231F94 #5D1F94
triadic
#231F94 #94231F #1F9423
tetradic
#231F94 #941F56 #90941F #1F945D
square
#231F94 #941F56 #90941F #1F945D
split-complementary
#231F94 #945D1F #56941F
monochromatic
#0B0A2F #171461 #231F94 #2F2AC7 #5753DB

Accessibility & contrast

On white

12.39
#231F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231F94
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F94#FFFFFF#000000##FFFFFF
##231F941.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#002F92
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #231f94;
/* rgb */ color: rgb(35, 31, 148);
/* oklch */ color: oklch(34.4% 0.181 273.0);
Tailwind
colors: {
  custom: {
    50: '#725db5',
    500: '#231f94',
    950: '#000000',
  },
}
SCSS
$custom: #231f94;
$custom-light: #725db5;
$custom-dark: #000000;
JSON
{
  "hex": "#231f94",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 242.051,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34433,
    "c": 0.18089,
    "h": 273
  },
  "luminance": 0.03475
}

Semantic roles & 50–950 ramp

primary
#231F94
secondary
#BABE51
accent
#E83FE3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #231F94

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

Preview Lab → · Contrast checker → · Palette generator →

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