#231A7E#231A7E

#231A7E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.158 H 276.1°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#231A7E
RGBrgb(35, 26, 126)
HSLhsl(245, 66%, 30%)
HSVhsv(245, 79%, 49%)
CMYKcmyk(72.2%, 79.4%, 0%, 50.6%)
CIE-LABlab(18.37, 37.00, -54.39)
CIE-LCHlch(18.37, 65.78, 304.23°)
OKLaboklab(31.25% 0.0168 -0.1572)
OKLCHoklch(31.25% 0.158 276.1)
XYZxyz(4.8272, 2.6020, 19.9825)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231A7E #757E1A
analogous
#1A437E #231A7E #551A7E
triadic
#231A7E #7E231A #1A7E23
tetradic
#231A7E #7E1A43 #757E1A #1A7E55
square
#231A7E #7E1A43 #757E1A #1A7E55
split-complementary
#231A7E #7E551A #437E1A
monochromatic
#070519 #15104B #231A7E #3124B1 #4A3CD7

Accessibility & contrast

On white

13.81
#231A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231A7E
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231A7E#FFFFFF#000000##FFFFFF
##231A7E1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #231a7e;
/* rgb */ color: rgb(35, 26, 126);
/* oklch */ color: oklch(31.2% 0.158 276.1);
Tailwind
colors: {
  custom: {
    50: '#6d59a4',
    500: '#231a7e',
    950: '#000000',
  },
}
SCSS
$custom: #231a7e;
$custom-light: #6d59a4;
$custom-dark: #000000;
JSON
{
  "hex": "#231a7e",
  "rgb": {
    "r": 35,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 245.4,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31249,
    "c": 0.15812,
    "h": 276.1
  },
  "luminance": 0.02602
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #231A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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