#23337B#23337B

#23337B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.4% C 0.124 H 269.5°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#23337B
RGBrgb(35, 51, 123)
HSLhsl(229, 56%, 31%)
HSVhsv(229, 72%, 48%)
CMYKcmyk(71.5%, 58.5%, 0%, 51.8%)
CIE-LABlab(24.18, 19.65, -42.98)
CIE-LCHlch(24.18, 47.26, 294.56°)
OKLaboklab(35.38% -0.001 -0.1238)
OKLCHoklch(35.38% 0.124 269.5)
XYZxyz(5.4509, 4.1545, 19.2497)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23337B #7B6B23
analogous
#235F7B #23337B #3F237B
triadic
#23337B #7B2333 #337B23
tetradic
#23337B #7B235F #7B6B23 #237B3F
square
#23337B #7B235F #7B6B23 #237B3F
split-complementary
#23337B #7B3F23 #5F7B23
monochromatic
#080B1C #151F4B #23337B #3147AB #4C64CC

Accessibility & contrast

On white

11.47
#23337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#23337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23337B
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23337B#FFFFFF#000000##FFFFFF
##23337B1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#004551
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #23337b;
/* rgb */ color: rgb(35, 51, 123);
/* oklch */ color: oklch(35.4% 0.124 269.5);
Tailwind
colors: {
  custom: {
    50: '#6a6aa2',
    500: '#23337b',
    950: '#000000',
  },
}
SCSS
$custom: #23337b;
$custom-light: #6a6aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#23337b",
  "rgb": {
    "r": 35,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 229.091,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35381,
    "c": 0.12376,
    "h": 269.5
  },
  "luminance": 0.04155
}

Semantic roles & 50–950 ramp

primary
#23337B
secondary
#AE9C4C
accent
#C449DF
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #23337B

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

Preview Lab → · Contrast checker → · Palette generator →

#23337B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva