#231B7E#231B7E

#231B7E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.157 H 275.9°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#231B7E
RGBrgb(35, 27, 126)
HSLhsl(245, 65%, 30%)
HSVhsv(245, 79%, 49%)
CMYKcmyk(72.2%, 78.6%, 0%, 50.6%)
CIE-LABlab(18.57, 36.44, -54.06)
CIE-LCHlch(18.57, 65.20, 303.98°)
OKLaboklab(31.39% 0.0163 -0.1563)
OKLCHoklch(31.39% 0.157 275.9)
XYZxyz(4.8497, 2.6471, 19.9900)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231B7E #767E1B
analogous
#1B457E #231B7E #541B7E
triadic
#231B7E #7E231B #1B7E23
tetradic
#231B7E #7E1B45 #767E1B #1B7E54
square
#231B7E #7E1B45 #767E1B #1B7E54
split-complementary
#231B7E #7E541B #457E1B
monochromatic
#070519 #15104C #231B7E #3126B0 #4A3ED6

Accessibility & contrast

On white

13.73
#231B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#231B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231B7E
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231B7E#FFFFFF#000000##FFFFFF
##231B7E1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #231b7e;
/* rgb */ color: rgb(35, 27, 126);
/* oklch */ color: oklch(31.4% 0.157 275.9);
Tailwind
colors: {
  custom: {
    50: '#6d59a4',
    500: '#231b7e',
    950: '#000000',
  },
}
SCSS
$custom: #231b7e;
$custom-light: #6d59a4;
$custom-dark: #000000;
JSON
{
  "hex": "#231b7e",
  "rgb": {
    "r": 35,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 244.848,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.31388,
    "c": 0.15713,
    "h": 275.9
  },
  "luminance": 0.02648
}

Semantic roles & 50–950 ramp

primary
#231B7E
secondary
#A9B243
accent
#E840DA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #231B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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