#231A7B#231A7B

#231A7B is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.154 H 276.5°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#231A7B
RGBrgb(35, 26, 123)
HSLhsl(246, 65%, 29%)
HSVhsv(246, 79%, 48%)
CMYKcmyk(71.5%, 78.9%, 0%, 51.8%)
CIE-LABlab(18.03, 35.99, -53.04)
CIE-LCHlch(18.03, 64.10, 304.16°)
OKLaboklab(30.91% 0.0176 -0.1533)
OKLCHoklch(30.91% 0.154 276.5)
XYZxyz(4.6365, 2.5258, 18.9782)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231A7B #727B1A
analogous
#1A427B #231A7B #541A7B
triadic
#231A7B #7B231A #1A7B23
tetradic
#231A7B #7B1A42 #727B1A #1A7B54
square
#231A7B #7B1A42 #727B1A #1A7B54
split-complementary
#231A7B #7B541A #427B1A
monochromatic
#070519 #150F48 #231A7B #3125AE #483AD5

Accessibility & contrast

On white

13.95
#231A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#231A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231A7B
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231A7B#FFFFFF#000000##FFFFFF
##231A7B1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #231a7b;
/* rgb */ color: rgb(35, 26, 123);
/* oklch */ color: oklch(30.9% 0.154 276.5);
Tailwind
colors: {
  custom: {
    50: '#6c59a2',
    500: '#231a7b',
    950: '#000000',
  },
}
SCSS
$custom: #231a7b;
$custom-light: #6c59a2;
$custom-dark: #000000;
JSON
{
  "hex": "#231a7b",
  "rgb": {
    "r": 35,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 245.567,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3091,
    "c": 0.15429,
    "h": 276.5
  },
  "luminance": 0.02526
}

Semantic roles & 50–950 ramp

primary
#231A7B
secondary
#A5AF42
accent
#E840D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #231A7B

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

Preview Lab → · Contrast checker → · Palette generator →

#231A7B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva