#231D7B#231D7B

#231D7B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.151 H 276.0°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#231D7B
RGBrgb(35, 29, 123)
HSLhsl(244, 62%, 30%)
HSVhsv(244, 76%, 48%)
CMYKcmyk(71.5%, 76.4%, 0%, 51.8%)
CIE-LABlab(18.65, 34.25, -52.02)
CIE-LCHlch(18.65, 62.28, 303.36°)
OKLaboklab(31.35% 0.0158 -0.1504)
OKLCHoklch(31.35% 0.151 276)
XYZxyz(4.7065, 2.6657, 19.0015)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231D7B #757B1D
analogous
#1D467B #231D7B #521D7B
triadic
#231D7B #7B231D #1D7B23
tetradic
#231D7B #7B1D46 #757B1D #1D7B52
square
#231D7B #7B1D46 #757B1D #1D7B52
split-complementary
#231D7B #7B521D #467B1D
monochromatic
#070619 #151149 #231D7B #3129AD #4A40D2

Accessibility & contrast

On white

13.70
#231D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231D7B
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231D7B#FFFFFF#000000##FFFFFF
##231D7B1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #231d7b;
/* rgb */ color: rgb(35, 29, 123);
/* oklch */ color: oklch(31.3% 0.151 276.0);
Tailwind
colors: {
  custom: {
    50: '#6c5aa2',
    500: '#231d7b',
    950: '#000000',
  },
}
SCSS
$custom: #231d7b;
$custom-light: #6c5aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#231d7b",
  "rgb": {
    "r": 35,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 243.83,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31346,
    "c": 0.15118,
    "h": 276
  },
  "luminance": 0.02666
}

Semantic roles & 50–950 ramp

primary
#231D7B
secondary
#A8AF45
accent
#E543DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #231D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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