#231FB3#231FB3

#231FB3 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.1% C 0.218 H 270.6°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#231FB3
RGBrgb(35, 31, 179)
HSLhsl(242, 70%, 41%)
HSVhsv(242, 83%, 70%)
CMYKcmyk(80.4%, 82.7%, 0%, 29.8%)
CIE-LABlab(25.54, 51.51, -75.16)
CIE-LCHlch(25.54, 91.12, 304.42°)
OKLaboklab(38.07% 0.0023 -0.2175)
OKLCHoklch(38.07% 0.218 270.6)
XYZxyz(9.3171, 4.5909, 43.0342)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231FB3 #AFB31F
analogous
#1F65B3 #231FB3 #6D1FB3
triadic
#231FB3 #B3231F #1FB323
tetradic
#231FB3 #B31F65 #AFB31F #1FB36D
square
#231FB3 #B31F65 #AFB31F #1FB36D
split-complementary
#231FB3 #B36D1F #65B31F
monochromatic
#0F0D4B #19167F #231FB3 #3833DC #6B68E5

Accessibility & contrast

On white

10.95
#231FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#231FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231FB3
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231FB3#FFFFFF#000000##FFFFFF
##231FB31.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0035B1
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #231fb3;
/* rgb */ color: rgb(35, 31, 179);
/* oklch */ color: oklch(38.1% 0.218 270.6);
Tailwind
colors: {
  custom: {
    50: '#7a5fcb',
    500: '#231fb3',
    950: '#000000',
  },
}
SCSS
$custom: #231fb3;
$custom-light: #7a5fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#231fb3",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 179
  },
  "hsl": {
    "h": 241.622,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38065,
    "c": 0.21756,
    "h": 270.6
  },
  "luminance": 0.04592
}

Semantic roles & 50–950 ramp

primary
#231FB3
secondary
#C7CA64
accent
#ED3BE8
background
#F8F5FC
surface
#EFEAF9
border
#CAC6D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #231FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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