#1F23A9#1F23A9

#1F23A9 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.2% C 0.204 H 269.8°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#1F23A9
RGBrgb(31, 35, 169)
HSLhsl(238, 69%, 39%)
HSVhsv(238, 82%, 66%)
CMYKcmyk(81.7%, 79.3%, 0%, 33.7%)
CIE-LABlab(24.82, 46.11, -70.35)
CIE-LCHlch(24.82, 84.11, 303.24°)
OKLaboklab(37.17% -0.0008 -0.2038)
OKLCHoklch(37.17% 0.204 269.8)
XYZxyz(8.3251, 4.3570, 37.9306)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F23A9 #A9A51F
analogous
#1F68A9 #1F23A9 #601FA9
triadic
#1F23A9 #A91F23 #23A91F
tetradic
#1F23A9 #A91F68 #A9A51F #1FA960
square
#1F23A9 #A91F68 #A9A51F #1FA960
split-complementary
#1F23A9 #A9601F #68A91F
monochromatic
#0C0E42 #161875 #1F23A9 #2D32D8 #6064E2

Accessibility & contrast

On white

11.22
#1F23A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1F23A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F23A9
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F23A9#FFFFFF#000000##FFFFFF
##1F23A91.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AD
Deuteranopia (green-blind)
#0034A7
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f23a9;
/* rgb */ color: rgb(31, 35, 169);
/* oklch */ color: oklch(37.2% 0.204 269.8);
Tailwind
colors: {
  custom: {
    50: '#7661c4',
    500: '#1f23a9',
    950: '#000000',
  },
}
SCSS
$custom: #1f23a9;
$custom-light: #7661c4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f23a9",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 169
  },
  "hsl": {
    "h": 238.261,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37165,
    "c": 0.20376,
    "h": 269.8
  },
  "luminance": 0.04358
}

Semantic roles & 50–950 ramp

primary
#1F23A9
secondary
#C7C45D
accent
#E73CEC
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #1F23A9

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

Preview Lab → · Contrast checker → · Palette generator →

#1F23A9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva