#231972#231972

#231972 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.144 H 278.1°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#231972
RGBrgb(35, 25, 114)
HSLhsl(247, 64%, 27%)
HSVhsv(247, 78%, 45%)
CMYKcmyk(69.3%, 78.1%, 0%, 55.3%)
CIE-LABlab(16.83, 33.51, -49.24)
CIE-LCHlch(16.83, 59.56, 304.24°)
OKLaboklab(29.76% 0.0204 -0.1422)
OKLCHoklch(29.76% 0.144 278.1)
XYZxyz(4.0770, 2.2671, 16.1391)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231972 #687219
analogous
#193B72 #231972 #501972
triadic
#231972 #722319 #197223
tetradic
#231972 #72193B #687219 #197250
square
#231972 #72193B #687219 #197250
split-complementary
#231972 #725019 #3B7219
monochromatic
#080619 #140E40 #231972 #3224A4 #4533D2

Accessibility & contrast

On white

14.45
#231972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#231972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231972
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231972#FFFFFF#000000##FFFFFF
##2319721.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #231972;
/* rgb */ color: rgb(35, 25, 114);
/* oklch */ color: oklch(29.8% 0.144 278.1);
Tailwind
colors: {
  custom: {
    50: '#6a579c',
    500: '#231972',
    950: '#000000',
  },
}
SCSS
$custom: #231972;
$custom-light: #6a579c;
$custom-dark: #000000;
JSON
{
  "hex": "#231972",
  "rgb": {
    "r": 35,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 246.742,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.29763,
    "c": 0.14366,
    "h": 278.1
  },
  "luminance": 0.02267
}

Semantic roles & 50–950 ramp

primary
#231972
secondary
#9BA740
accent
#E741D4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #231972

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

Preview Lab → · Contrast checker → · Palette generator →

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