#2331D4#2331D4

#2331D4 is a dark, highly saturated blue. Relative luminance 0.073; OKLCH L 44.0% C 0.241 H 268.2°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#2331D4
RGBrgb(35, 49, 212)
HSLhsl(235, 72%, 48%)
HSVhsv(235, 83%, 83%)
CMYKcmyk(83.5%, 76.9%, 0%, 16.9%)
CIE-LABlab(32.49, 52.95, -83.02)
CIE-LCHlch(32.49, 98.47, 302.53°)
OKLaboklab(44.04% -0.0076 -0.2406)
OKLCHoklch(44.04% 0.241 268.2)
XYZxyz(13.6710, 7.3057, 62.9642)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2331D4 #D4C623
analogous
#2389D4 #2331D4 #6D23D4
triadic
#2331D4 #D42331 #31D423
tetradic
#2331D4 #D42389 #D4C623 #23D46D
square
#2331D4 #D42389 #D4C623 #23D46D
split-complementary
#2331D4 #D46D23 #89D423
monochromatic
#12196B #1A259F #2331D4 #525DE2 #868EEB

Accessibility & contrast

On white

8.53
#2331D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2331D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2331D4
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2331D4#FFFFFF#000000##FFFFFF
##2331D41.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055D9
Deuteranopia (green-blind)
#0043D1
Tritanopia (blue-blind)
#006382
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2331d4;
/* rgb */ color: rgb(35, 49, 212);
/* oklch */ color: oklch(44.0% 0.241 268.2);
Tailwind
colors: {
  custom: {
    50: '#816ce3',
    500: '#2331d4',
    950: '#000000',
  },
}
SCSS
$custom: #2331d4;
$custom-light: #816ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#2331d4",
  "rgb": {
    "r": 35,
    "g": 49,
    "b": 212
  },
  "hsl": {
    "h": 235.254,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4404,
    "c": 0.2407,
    "h": 268.2
  },
  "luminance": 0.07307
}

Semantic roles & 50–950 ramp

primary
#2331D4
secondary
#D4CE7E
accent
#E039EE
background
#F9F6FE
surface
#F1EBFC
border
#CBC6D5
text
#0D0716
muted
#7E7A84

Preview Lab

Preview with #2331D4

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

Preview Lab → · Contrast checker → · Palette generator →

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