#231A7D#231A7D

#231A7D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.157 H 276.2°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#231A7D
RGBrgb(35, 26, 125)
HSLhsl(245, 66%, 30%)
HSVhsv(245, 79%, 49%)
CMYKcmyk(72%, 79.2%, 0%, 51%)
CIE-LABlab(18.26, 36.67, -53.94)
CIE-LCHlch(18.26, 65.22, 304.20°)
OKLaboklab(31.14% 0.0171 -0.1559)
OKLCHoklch(31.14% 0.157 276.2)
XYZxyz(4.7630, 2.5763, 19.6443)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231A7D #747D1A
analogous
#1A427D #231A7D #551A7D
triadic
#231A7D #7D231A #1A7D23
tetradic
#231A7D #7D1A42 #747D1A #1A7D55
square
#231A7D #7D1A42 #747D1A #1A7D55
split-complementary
#231A7D #7D551A #427D1A
monochromatic
#070519 #150F4A #231A7D #3125B0 #493BD6

Accessibility & contrast

On white

13.86
#231A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#231A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231A7D
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231A7D#FFFFFF#000000##FFFFFF
##231A7D1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#00287B
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #231a7d;
/* rgb */ color: rgb(35, 26, 125);
/* oklch */ color: oklch(31.1% 0.157 276.2);
Tailwind
colors: {
  custom: {
    50: '#6d59a4',
    500: '#231a7d',
    950: '#000000',
  },
}
SCSS
$custom: #231a7d;
$custom-light: #6d59a4;
$custom-dark: #000000;
JSON
{
  "hex": "#231a7d",
  "rgb": {
    "r": 35,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 245.455,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31135,
    "c": 0.15685,
    "h": 276.2
  },
  "luminance": 0.02577
}

Semantic roles & 50–950 ramp

primary
#231A7D
secondary
#A7B142
accent
#E93FD9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #231A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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