#231F7E#231F7E

#231F7E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.153 H 275.2°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#231F7E
RGBrgb(35, 31, 126)
HSLhsl(243, 61%, 31%)
HSVhsv(243, 75%, 49%)
CMYKcmyk(72.2%, 75.4%, 0%, 50.6%)
CIE-LABlab(19.40, 34.09, -52.69)
CIE-LCHlch(19.40, 62.75, 302.90°)
OKLaboklab(31.98% 0.014 -0.1523)
OKLCHoklch(31.98% 0.153 275.2)
XYZxyz(4.9478, 2.8432, 20.0227)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F7E #7A7E1F
analogous
#1F4A7E #231F7E #521F7E
triadic
#231F7E #7E231F #1F7E23
tetradic
#231F7E #7E1F4A #7A7E1F #1F7E52
square
#231F7E #7E1F4A #7A7E1F #1F7E52
split-complementary
#231F7E #7E521F #4A7E1F
monochromatic
#08071C #15134D #231F7E #312BAF #4C46D1

Accessibility & contrast

On white

13.39
#231F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#231F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F7E
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F7E#FFFFFF#000000##FFFFFF
##231F7E1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #231f7e;
/* rgb */ color: rgb(35, 31, 126);
/* oklch */ color: oklch(32.0% 0.153 275.2);
Tailwind
colors: {
  custom: {
    50: '#6d5ca4',
    500: '#231f7e',
    950: '#000000',
  },
}
SCSS
$custom: #231f7e;
$custom-light: #6d5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#231f7e",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 242.526,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31977,
    "c": 0.15296,
    "h": 275.2
  },
  "luminance": 0.02844
}

Semantic roles & 50–950 ramp

primary
#231F7E
secondary
#ADB148
accent
#E444DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #231F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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