#231B7D#231B7D

#231B7D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.156 H 276.1°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#231B7D
RGBrgb(35, 27, 125)
HSLhsl(245, 64%, 30%)
HSVhsv(245, 78%, 49%)
CMYKcmyk(72%, 78.4%, 0%, 51%)
CIE-LABlab(18.46, 36.10, -53.61)
CIE-LCHlch(18.46, 64.63, 303.95°)
OKLaboklab(31.28% 0.0165 -0.155)
OKLCHoklch(31.28% 0.156 276.1)
XYZxyz(4.7855, 2.6214, 19.6518)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231B7D #757D1B
analogous
#1B447D #231B7D #541B7D
triadic
#231B7D #7D231B #1B7D23
tetradic
#231B7D #7D1B44 #757D1B #1B7D54
square
#231B7D #7D1B44 #757D1B #1B7D54
split-complementary
#231B7D #7D541B #447D1B
monochromatic
#070519 #15104B #231B7D #3126AF #4A3DD5

Accessibility & contrast

On white

13.78
#231B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#231B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231B7D
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231B7D#FFFFFF#000000##FFFFFF
##231B7D1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #231b7d;
/* rgb */ color: rgb(35, 27, 125);
/* oklch */ color: oklch(31.3% 0.156 276.1);
Tailwind
colors: {
  custom: {
    50: '#6d59a4',
    500: '#231b7d',
    950: '#000000',
  },
}
SCSS
$custom: #231b7d;
$custom-light: #6d59a4;
$custom-dark: #000000;
JSON
{
  "hex": "#231b7d",
  "rgb": {
    "r": 35,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 244.898,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31275,
    "c": 0.15586,
    "h": 276.1
  },
  "luminance": 0.02622
}

Semantic roles & 50–950 ramp

primary
#231B7D
secondary
#A8B143
accent
#E740DA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #231B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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