#232798#232798

#232798 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.178 H 271.6°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#232798
RGBrgb(35, 39, 152)
HSLhsl(238, 63%, 37%)
HSVhsv(238, 77%, 60%)
CMYKcmyk(77%, 74.3%, 0%, 40.4%)
CIE-LABlab(23.92, 38.37, -61.48)
CIE-LCHlch(23.92, 72.47, 301.96°)
OKLaboklab(36.02% 0.0051 -0.178)
OKLCHoklch(36.02% 0.178 271.6)
XYZxyz(7.0842, 4.0746, 30.1128)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#232798 #989423
analogous
#236298 #232798 #5A2398
triadic
#232798 #982327 #279823
tetradic
#232798 #982362 #989423 #23985A
square
#232798 #982362 #989423 #23985A
split-complementary
#232798 #985A23 #629823
monochromatic
#0C0D35 #181A66 #232798 #2E34CA #5C60D9

Accessibility & contrast

On white

11.57
#232798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#232798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #232798
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##232798#FFFFFF#000000##FFFFFF
##2327981.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #232798;
/* rgb */ color: rgb(35, 39, 152);
/* oklch */ color: oklch(36.0% 0.178 271.6);
Tailwind
colors: {
  custom: {
    50: '#7262b7',
    500: '#232798',
    950: '#000000',
  },
}
SCSS
$custom: #232798;
$custom-light: #7262b7;
$custom-dark: #000000;
JSON
{
  "hex": "#232798",
  "rgb": {
    "r": 35,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 237.949,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36024,
    "c": 0.17805,
    "h": 271.6
  },
  "luminance": 0.04075
}

Semantic roles & 50–950 ramp

primary
#232798
secondary
#BEBB59
accent
#E042E6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #232798

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

Preview Lab → · Contrast checker → · Palette generator →

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