#2331A5#2331A5

#2331A5 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.184 H 269.6°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#2331A5
RGBrgb(35, 49, 165)
HSLhsl(234, 65%, 39%)
HSVhsv(234, 79%, 65%)
CMYKcmyk(78.8%, 70.3%, 0%, 35.3%)
CIE-LABlab(27.49, 36.85, -63.51)
CIE-LCHlch(27.49, 73.43, 300.12°)
OKLaboklab(38.99% -0.0014 -0.1839)
OKLCHoklch(38.99% 0.184 269.6)
XYZxyz(8.5806, 5.2696, 36.1549)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2331A5 #A59723
analogous
#2372A5 #2331A5 #5623A5
triadic
#2331A5 #A52331 #31A523
tetradic
#2331A5 #A52372 #A59723 #23A556
square
#2331A5 #A52372 #A59723 #23A556
split-complementary
#2331A5 #A55623 #72A523
monochromatic
#0E1340 #182273 #2331A5 #3243D3 #6471DE

Accessibility & contrast

On white

10.22
#2331A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2331A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2331A5
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2331A5#FFFFFF#000000##FFFFFF
##2331A51.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#003BA3
Tritanopia (blue-blind)
#005167
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2331a5;
/* rgb */ color: rgb(35, 49, 165);
/* oklch */ color: oklch(39.0% 0.184 269.6);
Tailwind
colors: {
  custom: {
    50: '#7569c1',
    500: '#2331a5',
    950: '#000000',
  },
}
SCSS
$custom: #2331a5;
$custom-light: #7569c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2331a5",
  "rgb": {
    "r": 35,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 233.538,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38993,
    "c": 0.18393,
    "h": 269.6
  },
  "luminance": 0.05271
}

Semantic roles & 50–950 ramp

primary
#2331A5
secondary
#C4B960
accent
#D640E8
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2331A5

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

Preview Lab → · Contrast checker → · Palette generator →

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