#2331A8#2331A8

#2331A8 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.3% C 0.188 H 269.5°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#2331A8
RGBrgb(35, 49, 168)
HSLhsl(234, 66%, 40%)
HSVhsv(234, 79%, 66%)
CMYKcmyk(79.2%, 70.8%, 0%, 34.1%)
CIE-LABlab(27.79, 37.93, -64.83)
CIE-LCHlch(27.79, 75.11, 300.33°)
OKLaboklab(39.3% -0.0017 -0.1877)
OKLCHoklch(39.3% 0.188 269.5)
XYZxyz(8.8569, 5.3801, 37.6099)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2331A8 #A89A23
analogous
#2374A8 #2331A8 #5723A8
triadic
#2331A8 #A82331 #31A823
tetradic
#2331A8 #A82374 #A89A23 #23A857
square
#2331A8 #A82374 #A89A23 #23A857
split-complementary
#2331A8 #A85723 #74A823
monochromatic
#0E1343 #182275 #2331A8 #3445D5 #6673DF

Accessibility & contrast

On white

10.11
#2331A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2331A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2331A8
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2331A8#FFFFFF#000000##FFFFFF
##2331A81.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#003BA6
Tritanopia (blue-blind)
#005269
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2331a8;
/* rgb */ color: rgb(35, 49, 168);
/* oklch */ color: oklch(39.3% 0.188 269.5);
Tailwind
colors: {
  custom: {
    50: '#7669c3',
    500: '#2331a8',
    950: '#000000',
  },
}
SCSS
$custom: #2331a8;
$custom-light: #7669c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2331a8",
  "rgb": {
    "r": 35,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 233.684,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39302,
    "c": 0.18775,
    "h": 269.5
  },
  "luminance": 0.05381
}

Semantic roles & 50–950 ramp

primary
#2331A8
secondary
#C5BA62
accent
#D73FE8
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2331A8

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

Preview Lab → · Contrast checker → · Palette generator →

#2331A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva