#231474#231474

#231474 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.151 H 278.7°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#231474
RGBrgb(35, 20, 116)
HSLhsl(249, 71%, 27%)
HSVhsv(249, 83%, 45%)
CMYKcmyk(69.8%, 82.8%, 0%, 54.5%)
CIE-LABlab(16.10, 36.94, -51.75)
CIE-LCHlch(16.10, 63.58, 305.52°)
OKLaboklab(29.32% 0.0228 -0.1495)
OKLCHoklch(29.32% 0.151 278.7)
XYZxyz(4.0947, 2.1182, 16.7127)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231474 #657414
analogous
#143574 #231474 #531474
triadic
#231474 #742314 #147423
tetradic
#231474 #741435 #657414 #147453
square
#231474 #741435 #657414 #147453
split-complementary
#231474 #745314 #357414
monochromatic
#08051A #130B40 #231474 #331DA8 #4428DA

Accessibility & contrast

On white

14.75
#231474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#231474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231474
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231474#FFFFFF#000000##FFFFFF
##2314741.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002472
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #231474;
/* rgb */ color: rgb(35, 20, 116);
/* oklch */ color: oklch(29.3% 0.151 278.7);
Tailwind
colors: {
  custom: {
    50: '#6b559d',
    500: '#231474',
    950: '#000000',
  },
}
SCSS
$custom: #231474;
$custom-light: #6b559d;
$custom-dark: #000000;
JSON
{
  "hex": "#231474",
  "rgb": {
    "r": 35,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 249.375,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29315,
    "c": 0.15118,
    "h": 278.7
  },
  "luminance": 0.02119
}

Semantic roles & 50–950 ramp

primary
#231474
secondary
#99AA3A
accent
#ED3AD1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #231474

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

Preview Lab → · Contrast checker → · Palette generator →

#231474 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva