#242FAF#242FAF

#242FAF is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.8% C 0.198 H 269.8°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#242FAF
RGBrgb(36, 47, 175)
HSLhsl(235, 66%, 41%)
HSVhsv(235, 79%, 69%)
CMYKcmyk(79.4%, 73.1%, 0%, 31.4%)
CIE-LABlab(28.12, 41.70, -68.49)
CIE-LCHlch(28.12, 80.18, 301.34°)
OKLaboklab(39.77% -0.0007 -0.1984)
OKLCHoklch(39.77% 0.198 269.8)
XYZxyz(9.4793, 5.5022, 41.1116)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242FAF #AFA424
analogous
#2475AF #242FAF #5F24AF
triadic
#242FAF #AF242F #2FAF24
tetradic
#242FAF #AF2475 #AFA424 #24AF5F
square
#242FAF #AF2475 #AFA424 #24AF5F
split-complementary
#242FAF #AF5F24 #75AF24
monochromatic
#0F1449 #1A217C #242FAF #3A46D6 #6D76E1

Accessibility & contrast

On white

10.00
#242FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#242FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242FAF
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242FAF#FFFFFF#000000##FFFFFF
##242FAF1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#003BAD
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #242faf;
/* rgb */ color: rgb(36, 47, 175);
/* oklch */ color: oklch(39.8% 0.198 269.8);
Tailwind
colors: {
  custom: {
    50: '#7868c8',
    500: '#242faf',
    950: '#000000',
  },
}
SCSS
$custom: #242faf;
$custom-light: #7868c8;
$custom-dark: #000000;
JSON
{
  "hex": "#242faf",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 235.252,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39766,
    "c": 0.19837,
    "h": 269.8
  },
  "luminance": 0.05503
}

Semantic roles & 50–950 ramp

primary
#242FAF
secondary
#C7C068
accent
#DB3FE9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #242FAF

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

Preview Lab → · Contrast checker → · Palette generator →

#242FAF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva