#2331A7#2331A7

#2331A7 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.2% C 0.186 H 269.5°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#2331A7
RGBrgb(35, 49, 167)
HSLhsl(234, 65%, 40%)
HSVhsv(234, 79%, 65%)
CMYKcmyk(79%, 70.7%, 0%, 34.5%)
CIE-LABlab(27.69, 37.57, -64.39)
CIE-LCHlch(27.69, 74.55, 300.26°)
OKLaboklab(39.2% -0.0016 -0.1865)
OKLCHoklch(39.2% 0.186 269.5)
XYZxyz(8.7641, 5.3430, 37.1211)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2331A7 #A79923
analogous
#2373A7 #2331A7 #5723A7
triadic
#2331A7 #A72331 #31A723
tetradic
#2331A7 #A72373 #A79923 #23A757
square
#2331A7 #A72373 #A79923 #23A757
split-complementary
#2331A7 #A75723 #73A723
monochromatic
#0E1342 #182274 #2331A7 #3344D4 #6672DF

Accessibility & contrast

On white

10.15
#2331A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2331A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2331A7
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2331A7#FFFFFF#000000##FFFFFF
##2331A71.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#005268
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2331a7;
/* rgb */ color: rgb(35, 49, 167);
/* oklch */ color: oklch(39.2% 0.186 269.5);
Tailwind
colors: {
  custom: {
    50: '#7569c2',
    500: '#2331a7',
    950: '#000000',
  },
}
SCSS
$custom: #2331a7;
$custom-light: #7569c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2331a7",
  "rgb": {
    "r": 35,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 233.636,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39198,
    "c": 0.18648,
    "h": 269.5
  },
  "luminance": 0.05344
}

Semantic roles & 50–950 ramp

primary
#2331A7
secondary
#C4BA61
accent
#D63FE8
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2331A7

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

Preview Lab → · Contrast checker → · Palette generator →

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