#23337C#23337C

#23337C is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.5% C 0.125 H 269.6°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#23337C
RGBrgb(35, 51, 124)
HSLhsl(229, 56%, 31%)
HSVhsv(229, 72%, 49%)
CMYKcmyk(71.8%, 58.9%, 0%, 51.4%)
CIE-LABlab(24.26, 20.04, -43.48)
CIE-LCHlch(24.26, 47.88, 294.74°)
OKLaboklab(35.47% -0.001 -0.1252)
OKLCHoklch(35.47% 0.125 269.6)
XYZxyz(5.5138, 4.1797, 19.5811)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23337C #7C6C23
analogous
#235F7C #23337C #3F237C
triadic
#23337C #7C2333 #337C23
tetradic
#23337C #7C235F #7C6C23 #237C3F
square
#23337C #7C235F #7C6C23 #237C3F
split-complementary
#23337C #7C3F23 #5F7C23
monochromatic
#080C1D #161F4C #23337C #3047AC #4D64CD

Accessibility & contrast

On white

11.44
#23337C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#23337C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23337C
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23337C#FFFFFF#000000##FFFFFF
##23337C1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #23337c;
/* rgb */ color: rgb(35, 51, 124);
/* oklch */ color: oklch(35.5% 0.125 269.6);
Tailwind
colors: {
  custom: {
    50: '#6a6aa3',
    500: '#23337c',
    950: '#000000',
  },
}
SCSS
$custom: #23337c;
$custom-light: #6a6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#23337c",
  "rgb": {
    "r": 35,
    "g": 51,
    "b": 124
  },
  "hsl": {
    "h": 229.213,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35468,
    "c": 0.12523,
    "h": 269.6
  },
  "luminance": 0.0418
}

Semantic roles & 50–950 ramp

primary
#23337C
secondary
#AF9D4C
accent
#C449DF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #23337C

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

Preview Lab → · Contrast checker → · Palette generator →

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