#23338E#23338E

#23338E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.1% C 0.151 H 269.6°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#23338E
RGBrgb(35, 51, 142)
HSLhsl(231, 60%, 35%)
HSVhsv(231, 75%, 56%)
CMYKcmyk(75.4%, 64.1%, 0%, 44.3%)
CIE-LABlab(25.79, 26.99, -52.23)
CIE-LCHlch(25.79, 58.79, 297.33°)
OKLaboklab(37.09% -0.0009 -0.1509)
OKLCHoklch(37.09% 0.151 269.6)
XYZxyz(6.7578, 4.6773, 26.1326)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23338E #8E7E23
analogous
#23698E #23338E #49238E
triadic
#23338E #8E2333 #338E23
tetradic
#23338E #8E2369 #8E7E23 #238E49
square
#23338E #8E2369 #8E7E23 #238E49
split-complementary
#23338E #8E4923 #698E23
monochromatic
#0B102C #17215D #23338E #2F45BF #5669D5

Accessibility & contrast

On white

10.85
#23338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#23338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23338E
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23338E#FFFFFF#000000##FFFFFF
##23338E1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #23338e;
/* rgb */ color: rgb(35, 51, 142);
/* oklch */ color: oklch(37.1% 0.151 269.6);
Tailwind
colors: {
  custom: {
    50: '#6f6ab0',
    500: '#23338e',
    950: '#000000',
  },
}
SCSS
$custom: #23338e;
$custom-light: #6f6ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#23338e",
  "rgb": {
    "r": 35,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 231.028,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3709,
    "c": 0.15092,
    "h": 269.6
  },
  "luminance": 0.04678
}

Semantic roles & 50–950 ramp

primary
#23338E
secondary
#B9AA53
accent
#CC44E4
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #23338E

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

Preview Lab → · Contrast checker → · Palette generator →

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