#231F89#231F89

#231F89 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.167 H 274.0°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#231F89
RGBrgb(35, 31, 137)
HSLhsl(242, 63%, 33%)
HSVhsv(242, 77%, 54%)
CMYKcmyk(74.5%, 77.4%, 0%, 46.3%)
CIE-LABlab(20.61, 37.89, -57.64)
CIE-LCHlch(20.61, 68.98, 303.31°)
OKLaboklab(33.19% 0.0117 -0.1667)
OKLCHoklch(33.19% 0.167 274)
XYZxyz(5.6970, 3.1429, 23.9685)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F89 #85891F
analogous
#1F5089 #231F89 #581F89
triadic
#231F89 #89231F #1F8923
tetradic
#231F89 #891F50 #85891F #1F8958
square
#231F89 #891F50 #85891F #1F8958
split-complementary
#231F89 #89581F #50891F
monochromatic
#090825 #161457 #231F89 #302ABB #514CD6

Accessibility & contrast

On white

12.89
#231F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#231F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F89
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F89#FFFFFF#000000##FFFFFF
##231F891.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #231f89;
/* rgb */ color: rgb(35, 31, 137);
/* oklch */ color: oklch(33.2% 0.167 274.0);
Tailwind
colors: {
  custom: {
    50: '#6f5cad',
    500: '#231f89',
    950: '#000000',
  },
}
SCSS
$custom: #231f89;
$custom-light: #6f5cad;
$custom-dark: #000000;
JSON
{
  "hex": "#231f89",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 242.264,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33188,
    "c": 0.16716,
    "h": 274
  },
  "luminance": 0.03143
}

Semantic roles & 50–950 ramp

primary
#231F89
secondary
#B5B94B
accent
#E642E0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #231F89

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

Preview Lab → · Contrast checker → · Palette generator →

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