#232998#232998

#232998 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.176 H 271.3°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#232998
RGBrgb(35, 41, 152)
HSLhsl(237, 63%, 37%)
HSVhsv(237, 77%, 60%)
CMYKcmyk(77%, 73%, 0%, 40.4%)
CIE-LABlab(24.35, 37.15, -60.76)
CIE-LCHlch(24.35, 71.22, 301.44°)
OKLaboklab(36.34% 0.0041 -0.1759)
OKLCHoklch(36.34% 0.176 271.3)
XYZxyz(7.1516, 4.2094, 30.1353)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#232998 #989223
analogous
#236498 #232998 #582398
triadic
#232998 #982329 #299823
tetradic
#232998 #982364 #989223 #239858
square
#232998 #982364 #989223 #239858
split-complementary
#232998 #985823 #649823
monochromatic
#0C0E35 #181C66 #232998 #2E36CA #5C62D9

Accessibility & contrast

On white

11.40
#232998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#232998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #232998
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##232998#FFFFFF#000000##FFFFFF
##2329981.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #232998;
/* rgb */ color: rgb(35, 41, 152);
/* oklch */ color: oklch(36.3% 0.176 271.3);
Tailwind
colors: {
  custom: {
    50: '#7264b7',
    500: '#232998',
    950: '#000000',
  },
}
SCSS
$custom: #232998;
$custom-light: #7264b7;
$custom-dark: #000000;
JSON
{
  "hex": "#232998",
  "rgb": {
    "r": 35,
    "g": 41,
    "b": 152
  },
  "hsl": {
    "h": 236.923,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36335,
    "c": 0.17595,
    "h": 271.3
  },
  "luminance": 0.0421
}

Semantic roles & 50–950 ramp

primary
#232998
secondary
#BEB959
accent
#DD42E6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #232998

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

Preview Lab → · Contrast checker → · Palette generator →

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