#231F8B#231F8B

#231F8B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.170 H 273.8°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#231F8B
RGBrgb(35, 31, 139)
HSLhsl(242, 64%, 33%)
HSVhsv(242, 78%, 55%)
CMYKcmyk(74.8%, 77.7%, 0%, 45.5%)
CIE-LABlab(20.83, 38.57, -58.53)
CIE-LCHlch(20.83, 70.09, 303.38°)
OKLaboklab(33.41% 0.0113 -0.1693)
OKLCHoklch(33.41% 0.17 273.8)
XYZxyz(5.8418, 3.2008, 24.7310)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F8B #878B1F
analogous
#1F518B #231F8B #591F8B
triadic
#231F8B #8B231F #1F8B23
tetradic
#231F8B #8B1F51 #878B1F #1F8B59
square
#231F8B #8B1F51 #878B1F #1F8B59
split-complementary
#231F8B #8B591F #518B1F
monochromatic
#0A0927 #161459 #231F8B #302ABD #524DD7

Accessibility & contrast

On white

12.80
#231F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#231F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F8B
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F8B#FFFFFF#000000##FFFFFF
##231F8B1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #231f8b;
/* rgb */ color: rgb(35, 31, 139);
/* oklch */ color: oklch(33.4% 0.170 273.8);
Tailwind
colors: {
  custom: {
    50: '#705dae',
    500: '#231f8b',
    950: '#000000',
  },
}
SCSS
$custom: #231f8b;
$custom-light: #705dae;
$custom-dark: #000000;
JSON
{
  "hex": "#231f8b",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 242.222,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33412,
    "c": 0.16969,
    "h": 273.8
  },
  "luminance": 0.03201
}

Semantic roles & 50–950 ramp

primary
#231F8B
secondary
#B6BA4C
accent
#E741E0
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #231F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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