#232397#232397

#232397 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.181 H 272.2°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#232397
RGBrgb(35, 35, 151)
HSLhsl(240, 62%, 36%)
HSVhsv(240, 77%, 59%)
CMYKcmyk(76.8%, 76.8%, 0%, 40.8%)
CIE-LABlab(22.98, 40.37, -62.42)
CIE-LCHlch(22.98, 74.34, 302.89°)
OKLaboklab(35.32% 0.007 -0.1807)
OKLCHoklch(35.32% 0.181 272.2)
XYZxyz(6.8782, 3.7930, 29.6418)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#232397 #979723
analogous
#235D97 #232397 #5D2397
triadic
#232397 #972323 #239723
tetradic
#232397 #97235D #979723 #23975D
square
#232397 #97235D #979723 #23975D
split-complementary
#232397 #975D23 #5D9723
monochromatic
#0C0C34 #171765 #232397 #2F2FC9 #5B5BD9

Accessibility & contrast

On white

11.94
#232397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#232397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #232397
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##232397#FFFFFF#000000##FFFFFF
##2323971.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #232397;
/* rgb */ color: rgb(35, 35, 151);
/* oklch */ color: oklch(35.3% 0.181 272.2);
Tailwind
colors: {
  custom: {
    50: '#7360b7',
    500: '#232397',
    950: '#000000',
  },
}
SCSS
$custom: #232397;
$custom-light: #7360b7;
$custom-dark: #000000;
JSON
{
  "hex": "#232397",
  "rgb": {
    "r": 35,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 240,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35323,
    "c": 0.18082,
    "h": 272.2
  },
  "luminance": 0.03794
}

Semantic roles & 50–950 ramp

primary
#232397
secondary
#BEBE58
accent
#E542E5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #232397

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

Preview Lab → · Contrast checker → · Palette generator →

#232397 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva