#23338F#23338F

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

Color values

HEX#23338F
RGBrgb(35, 51, 143)
HSLhsl(231, 61%, 35%)
HSVhsv(231, 76%, 56%)
CMYKcmyk(75.5%, 64.3%, 0%, 43.9%)
CIE-LABlab(25.88, 27.37, -52.70)
CIE-LCHlch(25.88, 59.39, 297.44°)
OKLaboklab(37.18% -0.001 -0.1523)
OKLCHoklch(37.18% 0.152 269.6)
XYZxyz(6.8332, 4.7074, 26.5298)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23338F #8F7F23
analogous
#23698F #23338F #49238F
triadic
#23338F #8F2333 #338F23
tetradic
#23338F #8F2369 #8F7F23 #238F49
square
#23338F #8F2369 #8F7F23 #238F49
split-complementary
#23338F #8F4923 #698F23
monochromatic
#0B102D #17215E #23338F #2F45C0 #5769D6

Accessibility & contrast

On white

10.82
#23338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #23338F
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23338F#FFFFFF#000000##FFFFFF
##23338F1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #23338f;
/* rgb */ color: rgb(35, 51, 143);
/* oklch */ color: oklch(37.2% 0.152 269.6);
Tailwind
colors: {
  custom: {
    50: '#6f6ab1',
    500: '#23338f',
    950: '#000000',
  },
}
SCSS
$custom: #23338f;
$custom-light: #6f6ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#23338f",
  "rgb": {
    "r": 35,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 231.111,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37184,
    "c": 0.1523,
    "h": 269.6
  },
  "luminance": 0.04708
}

Semantic roles & 50–950 ramp

primary
#23338F
secondary
#BAAB54
accent
#CC44E4
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #23338F

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

Preview Lab → · Contrast checker → · Palette generator →

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