#1F23B0#1F23B0

#1F23B0 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.0% C 0.212 H 269.4°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#1F23B0
RGBrgb(31, 35, 176)
HSLhsl(238, 70%, 41%)
HSVhsv(238, 82%, 69%)
CMYKcmyk(82.4%, 80.1%, 0%, 31%)
CIE-LABlab(25.64, 48.39, -73.19)
CIE-LCHlch(25.64, 87.74, 303.47°)
OKLaboklab(37.98% -0.0022 -0.212)
OKLCHoklch(37.98% 0.212 269.4)
XYZxyz(8.9999, 4.6269, 41.4846)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F23B0 #B0AC1F
analogous
#1F6BB0 #1F23B0 #631FB0
triadic
#1F23B0 #B01F23 #23B01F
tetradic
#1F23B0 #B01F6B #B0AC1F #1FB063
square
#1F23B0 #B01F6B #B0AC1F #1FB063
split-complementary
#1F23B0 #B0631F #6BB01F
monochromatic
#0D0E48 #16197C #1F23B0 #3136DB #6569E4

Accessibility & contrast

On white

10.91
#1F23B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#1F23B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F23B0
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F23B0#FFFFFF#000000##FFFFFF
##1F23B01.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B4
Deuteranopia (green-blind)
#0035AE
Tritanopia (blue-blind)
#004F6A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f23b0;
/* rgb */ color: rgb(31, 35, 176);
/* oklch */ color: oklch(38.0% 0.212 269.4);
Tailwind
colors: {
  custom: {
    50: '#7861c9',
    500: '#1f23b0',
    950: '#000000',
  },
}
SCSS
$custom: #1f23b0;
$custom-light: #7861c9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f23b0",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 176
  },
  "hsl": {
    "h": 238.345,
    "s": 70.048,
    "l": 40.588
  },
  "oklch": {
    "l": 0.37982,
    "c": 0.21199,
    "h": 269.4
  },
  "luminance": 0.04628
}

Semantic roles & 50–950 ramp

primary
#1F23B0
secondary
#C9C662
accent
#E83BED
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #1F23B0

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

Preview Lab → · Contrast checker → · Palette generator →

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