#231A7F#231A7F

#231A7F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.159 H 276.0°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#231A7F
RGBrgb(35, 26, 127)
HSLhsl(245, 66%, 30%)
HSVhsv(245, 80%, 50%)
CMYKcmyk(72.4%, 79.5%, 0%, 50.2%)
CIE-LABlab(18.49, 37.33, -54.84)
CIE-LCHlch(18.49, 66.34, 304.25°)
OKLaboklab(31.36% 0.0166 -0.1585)
OKLCHoklch(31.36% 0.159 276)
XYZxyz(4.8920, 2.6280, 20.3240)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231A7F #767F1A
analogous
#1A437F #231A7F #561A7F
triadic
#231A7F #7F231A #1A7F23
tetradic
#231A7F #7F1A43 #767F1A #1A7F56
square
#231A7F #7F1A43 #767F1A #1A7F56
split-complementary
#231A7F #7F561A #437F1A
monochromatic
#070519 #15104C #231A7F #3124B2 #4A3CD7

Accessibility & contrast

On white

13.77
#231A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#231A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231A7F
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231A7F#FFFFFF#000000##FFFFFF
##231A7F1.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #231a7f;
/* rgb */ color: rgb(35, 26, 127);
/* oklch */ color: oklch(31.4% 0.159 276.0);
Tailwind
colors: {
  custom: {
    50: '#6d59a5',
    500: '#231a7f',
    950: '#000000',
  },
}
SCSS
$custom: #231a7f;
$custom-light: #6d59a5;
$custom-dark: #000000;
JSON
{
  "hex": "#231a7f",
  "rgb": {
    "r": 35,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 245.347,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.31362,
    "c": 0.15939,
    "h": 276
  },
  "luminance": 0.02628
}

Semantic roles & 50–950 ramp

primary
#231A7F
secondary
#A9B342
accent
#E93FDA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #231A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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