#231B7F#231B7F

#231B7F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.158 H 275.8°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#231B7F
RGBrgb(35, 27, 127)
HSLhsl(245, 65%, 30%)
HSVhsv(245, 79%, 50%)
CMYKcmyk(72.4%, 78.7%, 0%, 50.2%)
CIE-LABlab(18.68, 36.78, -54.51)
CIE-LCHlch(18.68, 65.76, 304.00°)
OKLaboklab(31.5% 0.016 -0.1576)
OKLCHoklch(31.5% 0.158 275.8)
XYZxyz(4.9146, 2.6730, 20.3315)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231B7F #777F1B
analogous
#1B457F #231B7F #551B7F
triadic
#231B7F #7F231B #1B7F23
tetradic
#231B7F #7F1B45 #777F1B #1B7F55
square
#231B7F #7F1B45 #777F1B #1B7F55
split-complementary
#231B7F #7F551B #457F1B
monochromatic
#07061A #15104D #231B7F #3126B1 #4A3ED6

Accessibility & contrast

On white

13.68
#231B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231B7F
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231B7F#FFFFFF#000000##FFFFFF
##231B7F1.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #231b7f;
/* rgb */ color: rgb(35, 27, 127);
/* oklch */ color: oklch(31.5% 0.158 275.8);
Tailwind
colors: {
  custom: {
    50: '#6d59a5',
    500: '#231b7f',
    950: '#000000',
  },
}
SCSS
$custom: #231b7f;
$custom-light: #6d59a5;
$custom-dark: #000000;
JSON
{
  "hex": "#231b7f",
  "rgb": {
    "r": 35,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 244.8,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.315,
    "c": 0.15841,
    "h": 275.8
  },
  "luminance": 0.02673
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #231B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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