#231A7C#231A7C

#231A7C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.156 H 276.4°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#231A7C
RGBrgb(35, 26, 124)
HSLhsl(246, 65%, 29%)
HSVhsv(246, 79%, 49%)
CMYKcmyk(71.8%, 79%, 0%, 51.4%)
CIE-LABlab(18.15, 36.33, -53.49)
CIE-LCHlch(18.15, 64.66, 304.18°)
OKLaboklab(31.02% 0.0173 -0.1546)
OKLCHoklch(31.02% 0.156 276.4)
XYZxyz(4.6994, 2.5509, 19.3096)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231A7C #737C1A
analogous
#1A427C #231A7C #541A7C
triadic
#231A7C #7C231A #1A7C23
tetradic
#231A7C #7C1A42 #737C1A #1A7C54
square
#231A7C #7C1A42 #737C1A #1A7C54
split-complementary
#231A7C #7C541A #427C1A
monochromatic
#070519 #150F49 #231A7C #3125AF #493BD6

Accessibility & contrast

On white

13.91
#231A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231A7C
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231A7C#FFFFFF#000000##FFFFFF
##231A7C1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00287A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #231a7c;
/* rgb */ color: rgb(35, 26, 124);
/* oklch */ color: oklch(31.0% 0.156 276.4);
Tailwind
colors: {
  custom: {
    50: '#6d59a3',
    500: '#231a7c',
    950: '#000000',
  },
}
SCSS
$custom: #231a7c;
$custom-light: #6d59a3;
$custom-dark: #000000;
JSON
{
  "hex": "#231a7c",
  "rgb": {
    "r": 35,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 245.51,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31022,
    "c": 0.15557,
    "h": 276.4
  },
  "luminance": 0.02551
}

Semantic roles & 50–950 ramp

primary
#231A7C
secondary
#A6B042
accent
#E840D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #231A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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