#231F84#231F84

#231F84 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.161 H 274.6°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#231F84
RGBrgb(35, 31, 132)
HSLhsl(242, 62%, 32%)
HSVhsv(242, 77%, 52%)
CMYKcmyk(73.5%, 76.5%, 0%, 48.2%)
CIE-LABlab(20.05, 36.17, -55.41)
CIE-LCHlch(20.05, 66.18, 303.13°)
OKLaboklab(32.63% 0.0128 -0.1603)
OKLCHoklch(32.63% 0.161 274.6)
XYZxyz(5.3466, 3.0027, 22.1231)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F84 #80841F
analogous
#1F4E84 #231F84 #561F84
triadic
#231F84 #84231F #1F8423
tetradic
#231F84 #841F4E #80841F #1F8456
square
#231F84 #841F4E #80841F #1F8456
split-complementary
#231F84 #84561F #4E841F
monochromatic
#090821 #161352 #231F84 #302BB6 #4F49D4

Accessibility & contrast

On white

13.12
#231F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#231F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F84
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F84#FFFFFF#000000##FFFFFF
##231F841.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #231f84;
/* rgb */ color: rgb(35, 31, 132);
/* oklch */ color: oklch(32.6% 0.161 274.6);
Tailwind
colors: {
  custom: {
    50: '#6e5ca9',
    500: '#231f84',
    950: '#000000',
  },
}
SCSS
$custom: #231f84;
$custom-light: #6e5ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#231f84",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 242.376,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32633,
    "c": 0.16077,
    "h": 274.6
  },
  "luminance": 0.03003
}

Semantic roles & 50–950 ramp

primary
#231F84
secondary
#B2B748
accent
#E543DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #231F84

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

Preview Lab → · Contrast checker → · Palette generator →

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