#23338B#23338B

#23338B is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.8% C 0.147 H 269.7°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#23338B
RGBrgb(35, 51, 139)
HSLhsl(231, 60%, 34%)
HSVhsv(231, 75%, 55%)
CMYKcmyk(74.8%, 63.3%, 0%, 45.5%)
CIE-LABlab(25.53, 25.84, -50.81)
CIE-LCHlch(25.53, 57.00, 296.96°)
OKLaboklab(36.81% -0.0009 -0.1467)
OKLCHoklch(36.81% 0.147 269.7)
XYZxyz(6.5356, 4.5884, 24.9623)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23338B #8B7B23
analogous
#23678B #23338B #47238B
triadic
#23338B #8B2333 #338B23
tetradic
#23338B #8B2367 #8B7B23 #238B47
square
#23338B #8B2367 #8B7B23 #238B47
split-complementary
#23338B #8B4723 #678B23
monochromatic
#0A0F29 #17215A #23338B #2F45BC #5468D4

Accessibility & contrast

On white

10.95
#23338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#23338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23338B
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23338B#FFFFFF#000000##FFFFFF
##23338B1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #23338b;
/* rgb */ color: rgb(35, 51, 139);
/* oklch */ color: oklch(36.8% 0.147 269.7);
Tailwind
colors: {
  custom: {
    50: '#6e6aae',
    500: '#23338b',
    950: '#000000',
  },
}
SCSS
$custom: #23338b;
$custom-light: #6e6aae;
$custom-dark: #000000;
JSON
{
  "hex": "#23338b",
  "rgb": {
    "r": 35,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 230.769,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3681,
    "c": 0.14674,
    "h": 269.7
  },
  "luminance": 0.04589
}

Semantic roles & 50–950 ramp

primary
#23338B
secondary
#B8A852
accent
#CB45E3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #23338B

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

Preview Lab → · Contrast checker → · Palette generator →

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