#231B7C#231B7C

#231B7C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.155 H 276.2°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#231B7C
RGBrgb(35, 27, 124)
HSLhsl(245, 64%, 30%)
HSVhsv(245, 78%, 49%)
CMYKcmyk(71.8%, 78.2%, 0%, 51.4%)
CIE-LABlab(18.35, 35.76, -53.16)
CIE-LCHlch(18.35, 64.07, 303.93°)
OKLaboklab(31.16% 0.0168 -0.1537)
OKLCHoklch(31.16% 0.155 276.2)
XYZxyz(4.7220, 2.5960, 19.3171)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231B7C #747C1B
analogous
#1B447C #231B7C #531B7C
triadic
#231B7C #7C231B #1B7C23
tetradic
#231B7C #7C1B44 #747C1B #1B7C53
square
#231B7C #7C1B44 #747C1B #1B7C53
split-complementary
#231B7C #7C531B #447C1B
monochromatic
#070519 #15104A #231B7C #3126AE #493DD5

Accessibility & contrast

On white

13.82
#231B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231B7C
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231B7C#FFFFFF#000000##FFFFFF
##231B7C1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#00287A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #231b7c;
/* rgb */ color: rgb(35, 27, 124);
/* oklch */ color: oklch(31.2% 0.155 276.2);
Tailwind
colors: {
  custom: {
    50: '#6d59a3',
    500: '#231b7c',
    950: '#000000',
  },
}
SCSS
$custom: #231b7c;
$custom-light: #6d59a3;
$custom-dark: #000000;
JSON
{
  "hex": "#231b7c",
  "rgb": {
    "r": 35,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 244.948,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31163,
    "c": 0.15457,
    "h": 276.2
  },
  "luminance": 0.02596
}

Semantic roles & 50–950 ramp

primary
#231B7C
secondary
#A7B043
accent
#E741D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #231B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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