#2315A1#2315A1

#2315A1 is a dark, highly saturated blue. Relative luminance 0.035; OKLCH L 34.9% C 0.204 H 272.5°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2315A1
RGBrgb(35, 21, 161)
HSLhsl(246, 77%, 36%)
HSVhsv(246, 87%, 63%)
CMYKcmyk(78.3%, 87%, 0%, 36.9%)
CIE-LABlab(21.82, 50.40, -70.46)
CIE-LCHlch(21.82, 86.64, 305.58°)
OKLaboklab(34.87% 0.0089 -0.2038)
OKLCHoklch(34.87% 0.204 272.5)
XYZxyz(7.3922, 3.4661, 33.9907)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2315A1 #93A115
analogous
#154DA1 #2315A1 #6915A1
triadic
#2315A1 #A12315 #15A123
tetradic
#2315A1 #A1154D #93A115 #15A169
square
#2315A1 #A1154D #93A115 #15A169
split-complementary
#2315A1 #A16915 #4DA115
monochromatic
#0B0735 #170E6B #2315A1 #2F1CD7 #5949E7

Accessibility & contrast

On white

12.40
#2315A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2315A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2315A1
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2315A1#FFFFFF#000000##FFFFFF
##2315A11.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA5
Deuteranopia (green-blind)
#002D9F
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2315a1;
/* rgb */ color: rgb(35, 21, 161);
/* oklch */ color: oklch(34.9% 0.204 272.5);
Tailwind
colors: {
  custom: {
    50: '#7659be',
    500: '#2315a1',
    950: '#000000',
  },
}
SCSS
$custom: #2315a1;
$custom-light: #7659be;
$custom-dark: #000000;
JSON
{
  "hex": "#2315a1",
  "rgb": {
    "r": 35,
    "g": 21,
    "b": 161
  },
  "hsl": {
    "h": 246,
    "s": 76.923,
    "l": 35.686
  },
  "oklch": {
    "l": 0.34867,
    "c": 0.20396,
    "h": 272.5
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

primary
#2315A1
secondary
#BCC849
accent
#F334E0
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2315A1

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

Preview Lab → · Contrast checker → · Palette generator →

#2315A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva